| |
|
| java.lang.Object org.apache.cactus.WebResponse
WebResponse | public class WebResponse (Code) | | Default web response implementation that provides a minimal
API for asserting returned output stream from the server side. For more
complex assertions, use an com.meterware.httpunit.WebResponse
instead as parameter of your endXXX() methods.
version: $Id: WebResponse.java 238991 2004-05-22 11:34:50Z vmassol $ |
WebResponse | public WebResponse(WebRequest theRequest, HttpURLConnection theConnection)(Code) | | Parameters: theRequest - the request data that were used to open theconnection to the server. Parameters: theConnection - the original HttpURLConnection usedto call the URL |
getCookie | public Cookie getCookie(String theName)(Code) | | Return the first cookie found that has the specified name or null
if not found.
Parameters: theName - the cookie name to find the cookie or null if not found |
getCookieIgnoreCase | public Cookie getCookieIgnoreCase(String theName)(Code) | | Return the first cookie found that has the specified name or null
if not found. The name is case-insensitive.
Parameters: theName - the cookie name to find (case-insensitive) the cookie or null if not found since: 1.5 |
getCookies | public Cookie[] getCookies()(Code) | | the cookies returned by the server |
getInputStream | public InputStream getInputStream()(Code) | | a buffered input stream for reading the response data. |
getStatusCode | public int getStatusCode()(Code) | | Returns the status code returned by the server.
The status code since: 1.5 |
getText | public String getText()(Code) | | the text of the response (excluding headers) as a string. |
getTextAsArray | public String[] getTextAsArray()(Code) | | the text of the response (excluding headers) as an array ofstrings (each string is a separate line from the output stream). |
getWebRequest | public WebRequest getWebRequest()(Code) | | the request data the were used to open the connection to theserver |
|
|
|