|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPResponse
A handle to an HTTP response headers and contents.
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 |
---|
java.lang.String getTargetUrl()
java.io.InputStream getResponseStream() throws java.io.IOException
java.io.IOException
- the plain stream to the response contentsjava.lang.String getResponseHeader(java.lang.String headerName)
headerName
- the response header name to get the value of
null
java.lang.String getResponseCharset()
null
if not indicated by the server.java.lang.String getContentType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |