Package org.geotools.http
Class DelegateHTTPResponse
Object
DelegateHTTPResponse
- All Implemented Interfaces:
HTTPResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this HTTP response and cleans up any resource being held.Short cut forgetResponseHeader("Content-Type")
getResponseHeader
(String headerName) Returns the value of the requested HTTP response header, ornull
if not set.Returns the HTTP response content byte stream, automatically recognizing gzip encoded responses and returning an uncompressing stream if that's the case.
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegateHTTPResponse
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:HTTPResponse
Disposes this HTTP response and cleans up any resource being held.Multiple invocations of this method shall not raise an exception but return silently.
- Specified by:
dispose
in interfaceHTTPResponse
-
getContentType
Description copied from interface:HTTPResponse
Short cut forgetResponseHeader("Content-Type")
- Specified by:
getContentType
in interfaceHTTPResponse
-
getResponseHeader
Description copied from interface:HTTPResponse
Returns the value of the requested HTTP response header, ornull
if not set.- Specified by:
getResponseHeader
in interfaceHTTPResponse
-
getResponseStream
Description copied from interface:HTTPResponse
Returns the HTTP response content byte stream, automatically recognizing gzip encoded responses and returning an uncompressing stream if that's the case.- Specified by:
getResponseStream
in interfaceHTTPResponse
- Throws:
IOException
- if such happens when obtaining the response stream.
-
getResponseCharset
- Specified by:
getResponseCharset
in interfaceHTTPResponse
- Returns:
- the response charset parsed out of the content type response header, if any, or
null
otherwise.
-