|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.wfs.protocol.http.DefaultHTTPProtocol.HTTPClientResponse
public class DefaultHTTPProtocol.HTTPClientResponse
An HTTPResponse
wrapping an executed GetMethod
or PostMethod
from the
apache commons-httpclient package
Constructor Summary | |
---|---|
DefaultHTTPProtocol.HTTPClientResponse(org.apache.commons.httpclient.HttpMethodBase method)
|
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()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultHTTPProtocol.HTTPClientResponse(org.apache.commons.httpclient.HttpMethodBase method)
Method Detail |
---|
public java.io.InputStream getResponseStream() throws java.io.IOException
HTTPResponse
getResponseStream
in interface HTTPResponse
java.io.IOException
- the plain stream to the response contentsHTTPResponse.getResponseStream()
public java.lang.String getContentType()
HTTPResponse
getContentType
in interface HTTPResponse
public java.lang.String getResponseCharset()
HTTPResponse
getResponseCharset
in interface HTTPResponse
null
if not indicated by the server.public java.lang.String getResponseHeader(java.lang.String headerName)
HTTPResponse
getResponseHeader
in interface HTTPResponse
headerName
- the response header name to get the value of
null
HTTPResponse#getResponseHeader()
public java.lang.String getTargetUrl()
getTargetUrl
in interface HTTPResponse
HTTPResponse.getTargetUrl()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |