static class ParsedURLDataProtocolHandler.DataParsedURLData extends ParsedURLData
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
charset |
acceptedEncodings, contentEncoding, contentType, contentTypeCharset, contentTypeMediaType, GZIP_MAGIC, hasBeenOpened, host, HTTP_ACCEPT_ENCODING_HEADER, HTTP_ACCEPT_HEADER, HTTP_ACCEPT_LANGUAGE_HEADER, HTTP_USER_AGENT_HEADER, path, port, postConnectionURL, protocol, ref, stream| Constructor and Description |
|---|
DataParsedURLData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complete()
Returns true if the URL looks well formed and complete.
|
static java.io.InputStream |
decode(java.lang.String s) |
java.lang.String |
getContentEncoding(java.lang.String userAgent)
Returns the content encoding if available.
|
java.lang.String |
getContentType(java.lang.String userAgent)
Returns the content type if available.
|
java.lang.String |
getPortStr()
Returns the URL up to and include the port number on
the host.
|
protected java.io.InputStream |
openStreamInternal(java.lang.String userAgent,
java.util.Iterator mimeTypes,
java.util.Iterator encodingTypes) |
java.lang.String |
toString()
Return a string representation of the data.
|
buildURL, checkGZIP, equals, extractContentTypeParts, getContentTypeCharset, getContentTypeMediaType, getPostConnectionURL, hasContentTypeParameter, hashCode, openStream, openStreamRaw, sameFilepublic boolean complete()
ParsedURLDatacomplete in class ParsedURLDatapublic java.lang.String getPortStr()
ParsedURLDatagetPortStr in class ParsedURLDatapublic java.lang.String toString()
ParsedURLDatatoString in class ParsedURLDatapublic java.lang.String getContentType(java.lang.String userAgent)
getContentType in class ParsedURLDatapublic java.lang.String getContentEncoding(java.lang.String userAgent)
getContentEncoding in class ParsedURLDataprotected java.io.InputStream openStreamInternal(java.lang.String userAgent,
java.util.Iterator mimeTypes,
java.util.Iterator encodingTypes)
throws java.io.IOException
openStreamInternal in class ParsedURLDatajava.io.IOExceptionpublic static java.io.InputStream decode(java.lang.String s)