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
Author:
Gabriel Roldan (OpenGeo)
Module:
modules/unsupported/wfs (gt-wfs.jar)

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

Method Detail

getTargetUrl

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

getResponseStream

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

Throws:
IOException - the plain stream to the response contents

getResponseHeader

String getResponseHeader(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

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

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



Copyright © 1996-2010 Geotools. All Rights Reserved.