org.geotools.data.wfs.protocol.http
Interface HTTPResponse

All Known Implementing Classes:
DefaultHTTPProtocol.HTTPClientResponse

public interface HTTPResponse

A handle to an HTTP response headers and contents.

Since:
2.6
Version:
$Id: HTTPResponse.java 31823 2008-11-11 16:11:49Z groldan $
Author:
Gabriel Roldan (OpenGeo)

Method Summary
 java.lang.String getContentType()
          Shortcut method to get the response content-type header
 java.lang.String getResponseCharset()
          Returns the response charset identifier as extracted from the HTTP header, if any.
 java.lang.String getResponseHeader(java.lang.String headerName)
          Returns the value of the given HTTP response header.
 java.io.InputStream getResponseStream()
          Returns the stream to the response contents ready to be consumed, whether gzip encoding is being used or not.
 java.lang.String getTargetUrl()
           
 

Method Detail

getTargetUrl

java.lang.String getTargetUrl()
Returns:
the URL the request producing this response was sent to

getResponseStream

java.io.InputStream getResponseStream()
                                      throws java.io.IOException
Returns the stream to the response contents ready to be consumed, whether gzip encoding is being used or not.

Throws:
java.io.IOException - the plain stream to the response contents

getResponseHeader

java.lang.String getResponseHeader(java.lang.String headerName)
Returns the value of the given HTTP response header.

Parameters:
headerName - the response header name to get the value of
Returns:
the value the HTTP server set for the given response header name, may be null

getResponseCharset

java.lang.String getResponseCharset()
Returns the response charset identifier as extracted from the HTTP header, if any.

Returns:
the charset or null if not indicated by the server.

getContentType

java.lang.String getContentType()
Shortcut method to get the response content-type header



Copyright © 1996-2010 Geotools. All Rights Reserved.