Package org.geotools.http
Class DelegateHTTPResponse
- Object
- 
- DelegateHTTPResponse
 
- 
- All Implemented Interfaces:
- HTTPResponse
 
 public class DelegateHTTPResponse extends Object implements HTTPResponse 
- 
- 
Field SummaryFields Modifier and Type Field Description protected HTTPResponsedelegate
 - 
Constructor SummaryConstructors Constructor Description DelegateHTTPResponse(HTTPResponse delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes this HTTP response and cleans up any resource being held.StringgetContentType()Short cut forgetResponseHeader("Content-Type")StringgetResponseCharset()StringgetResponseHeader(String headerName)Returns the value of the requested HTTP response header, ornullif not set.InputStreamgetResponseStream()Returns the HTTP response content byte stream, automatically recognizing gzip encoded responses and returning an uncompressing stream if that's the case.
 
- 
- 
- 
Field Detail- 
delegateprotected HTTPResponse delegate 
 
- 
 - 
Constructor Detail- 
DelegateHTTPResponsepublic DelegateHTTPResponse(HTTPResponse delegate) 
 
- 
 - 
Method Detail- 
disposepublic void dispose() Description copied from interface:HTTPResponseDisposes 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:
- disposein interface- HTTPResponse
 
 - 
getContentTypepublic String getContentType() Description copied from interface:HTTPResponseShort cut forgetResponseHeader("Content-Type")- Specified by:
- getContentTypein interface- HTTPResponse
 
 - 
getResponseHeaderpublic String getResponseHeader(String headerName) Description copied from interface:HTTPResponseReturns the value of the requested HTTP response header, ornullif not set.- Specified by:
- getResponseHeaderin interface- HTTPResponse
 
 - 
getResponseStreampublic InputStream getResponseStream() throws IOException Description copied from interface:HTTPResponseReturns the HTTP response content byte stream, automatically recognizing gzip encoded responses and returning an uncompressing stream if that's the case.- Specified by:
- getResponseStreamin interface- HTTPResponse
- Throws:
- IOException- if such happens when obtaining the response stream.
 
 - 
getResponseCharsetpublic String getResponseCharset() - Specified by:
- getResponseCharsetin interface- HTTPResponse
- Returns:
- the response charset parsed out of the content type response header, if any, or nullotherwise.
 
 
- 
 
-