java.lang.Object
org.htmlunit.MockWebConnection.RawResponseData
- Enclosing class:
- MockWebConnection
Contains the raw data configured for a response.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the configured response content as a byte array.Returns the configured charset, ornullif byte content was configured.Returns the configured response headers.intReturns the configured HTTP status code.Returns the configured HTTP status message.Returns the configured response content as a string.
-
Method Details
-
getHeaders
Returns the configured response headers.- Returns:
- the headers
-
getByteContent
public byte[] getByteContent()Returns the configured response content as a byte array.- Returns:
- the byte content, or
nullif string content was configured
-
getStringContent
Returns the configured response content as a string.- Returns:
- the string content, or
nullif byte content was configured
-
getStatusCode
public int getStatusCode()Returns the configured HTTP status code.- Returns:
- the status code
-
getStatusMessage
Returns the configured HTTP status message.- Returns:
- the status message
-
getCharset
Returns the configured charset, ornullif byte content was configured.- Returns:
- the charset, or
nullfor byte content
-