@Deprecated public class DelegateHTTPResponse extends Object implements HTTPResponse
DelegateHTTPResponse| Modifier and Type | Field and Description |
|---|---|
protected HTTPResponse |
delegate
Deprecated.
|
| Constructor and Description |
|---|
DelegateHTTPResponse(HTTPResponse delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
Disposes this HTTP response and cleans up any resource being held.
|
String |
getContentType()
Deprecated.
Short cut for
getResponseHeader("Content-Type") |
String |
getResponseCharset()
Deprecated.
|
String |
getResponseHeader(String headerName)
Deprecated.
Returns the value of the requested HTTP response header, or
null if not set. |
InputStream |
getResponseStream()
Deprecated.
Returns the HTTP response content byte stream, automatically recognizing gzip encoded
responses and returning an uncompressing stream if that's the case.
|
protected HTTPResponse delegate
public DelegateHTTPResponse(HTTPResponse delegate)
public void dispose()
HTTPResponseMultiple invocations of this method shall not raise an exception but return silently.
dispose in interface HTTPResponsepublic String getContentType()
HTTPResponsegetResponseHeader("Content-Type")getContentType in interface HTTPResponsepublic String getResponseHeader(String headerName)
HTTPResponsenull if not set.getResponseHeader in interface HTTPResponsepublic InputStream getResponseStream() throws IOException
HTTPResponsegetResponseStream in interface HTTPResponseIOException - if such happens when obtaining the response stream.public String getResponseCharset()
getResponseCharset in interface HTTPResponsenull otherwise.Copyright © 1996–2021 Geotools. All rights reserved.