|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebResponse
A response from a web server
Method Summary | |
---|---|
java.io.InputStream |
getContentAsStream()
Return the content from the server as an input stream |
java.lang.String |
getContentAsString()
Return the content from the server as a string |
java.lang.String |
getContentCharSet()
Return the content charset value. |
java.lang.String |
getContentType()
Return the content type returned from the server. |
long |
getLoadTimeInMilliSeconds()
Return the time it took to load this web response in milliseconds. |
SubmitMethod |
getRequestMethod()
Return the method used for the request resulting into this response. |
byte[] |
getResponseBody()
Return the response body as byte array. |
java.util.List |
getResponseHeaders()
Return the response headers as a List of NameValuePair s. |
java.lang.String |
getResponseHeaderValue(java.lang.String headerName)
Return the value of the specified header from this response. |
int |
getStatusCode()
Return the status code that was returned by the server |
java.lang.String |
getStatusMessage()
Return the status message that was returned from the server |
java.net.URL |
getUrl()
Return the URL that was used to load this page. |
Method Detail |
---|
java.io.InputStream getContentAsStream() throws java.io.IOException
java.io.IOException
- If an IO problem occursjava.lang.String getContentAsString()
java.lang.String getContentCharSet()
java.lang.String getContentType()
long getLoadTimeInMilliSeconds()
SubmitMethod getRequestMethod()
byte[] getResponseBody()
java.util.List getResponseHeaders()
NameValuePair
s.
NameValuePair
s.java.lang.String getResponseHeaderValue(java.lang.String headerName)
headerName
- The name of the header
int getStatusCode()
java.lang.String getStatusMessage()
java.net.URL getUrl()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |