|
||||||||||
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 | |
---|---|
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 |
---|
String getTargetUrl()
InputStream getResponseStream() throws IOException
IOException
- the plain stream to the response contentsString getResponseHeader(String headerName)
headerName
- the response header name to get the value of
null
String getResponseCharset()
null
if not indicated by the server.String getContentType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |