public interface WebResponse
Modifier and Type | Method and Description |
---|---|
InputStream |
getContentAsStream()
Return the content from the server as an input stream
|
String |
getContentAsString()
Return the content from the server as a string
|
String |
getContentCharSet()
Return the content charset value.
|
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.
|
List |
getResponseHeaders()
Return the response headers as a List of
NameValuePair s. |
String |
getResponseHeaderValue(String headerName)
Return the value of the specified header from this response.
|
int |
getStatusCode()
Return the status code that was returned by the server
|
String |
getStatusMessage()
Return the status message that was returned from the server
|
URL |
getUrl()
Return the URL that was used to load this page.
|
int getStatusCode()
String getStatusMessage()
String getContentType()
String getContentAsString()
InputStream getContentAsStream() throws IOException
IOException
- If an IO problem occursURL getUrl()
SubmitMethod getRequestMethod()
List getResponseHeaders()
NameValuePair
s.NameValuePair
s.String getResponseHeaderValue(String headerName)
headerName
- The name of the headerlong getLoadTimeInMilliSeconds()
String getContentCharSet()
byte[] getResponseBody()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.