public static final class Http1Client.Http1Response extends HttpClient.Response
| Modifier and Type | Field and Description |
|---|---|
private java.net.HttpURLConnection |
connection |
| Modifier | Constructor and Description |
|---|---|
private |
Http1Response(java.net.HttpURLConnection connection,
ProgressMonitor progressMonitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
java.lang.String |
getContentEncoding()
Returns the
Content-Encoding header. |
long |
getContentLength()
Returns the
Content-Length header. |
java.lang.String |
getContentType()
Returns the
Content-Type header. |
long |
getExpiration()
Returns the
Expire header. |
java.lang.String |
getHeaderField(java.lang.String name)
Returns the value of the named header field.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderFields()
Returns an unmodifiable Map mapping header keys to a List of header values.
|
java.io.InputStream |
getInputStream() |
long |
getLastModified()
Returns the
Last-Modified header. |
java.lang.String |
getRequestMethod()
Returns the request method.
|
java.net.URL |
getURL()
Returns the URL.
|
debugRedirect, fetchContent, getContent, getContentReader, getResponseCode, getResponseMessage, uncompress, uncompressAccordingToContentDispositionprivate final java.net.HttpURLConnection connection
private Http1Response(java.net.HttpURLConnection connection, ProgressMonitor progressMonitor) throws java.io.IOException
java.io.IOExceptionpublic java.net.URL getURL()
HttpClient.ResponsegetURL in class HttpClient.ResponseURLConnection.getURL()public java.lang.String getRequestMethod()
HttpClient.ResponsegetRequestMethod in class HttpClient.ResponseHttpURLConnection.getRequestMethod()public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream in class HttpClient.Responsejava.io.IOExceptionpublic java.lang.String getContentEncoding()
HttpClient.ResponseContent-Encoding header.getContentEncoding in class HttpClient.ResponseContent-Encoding HTTP headerURLConnection.getContentEncoding()public java.lang.String getContentType()
HttpClient.ResponseContent-Type header.getContentType in class HttpClient.ResponseContent-Type HTTP headerURLConnection.getContentType()public long getExpiration()
HttpClient.ResponseExpire header.getExpiration in class HttpClient.ResponseExpire HTTP headerURLConnection.getExpiration()public long getLastModified()
HttpClient.ResponseLast-Modified header.getLastModified in class HttpClient.ResponseLast-Modified HTTP headerURLConnection.getLastModified()public long getContentLength()
HttpClient.ResponseContent-Length header.getContentLength in class HttpClient.ResponseContent-Length HTTP headerURLConnection.getContentLengthLong()public java.lang.String getHeaderField(java.lang.String name)
HttpClient.ResponsegetHeaderField in class HttpClient.Responsename - the name of a header fieldnull if there is no such field in the headerURLConnection.getHeaderField(String)public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
HttpClient.ResponsegetHeaderFields in class HttpClient.ResponseURLConnection.getHeaderFields()public void disconnect()
disconnect in class HttpClient.ResponseHttpURLConnection.disconnect()