Package org.htmlunit
Class MockWebConnection.RawResponseData
java.lang.Object
org.htmlunit.MockWebConnection.RawResponseData
- Enclosing class:
MockWebConnection
Contains the raw data configured for a response.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the configured content bytes.Gets the configured charset.Gets the configured headers.int
Gets the configured status code.Gets the configured status message.Gets the configured content String.
-
Method Details
-
getHeaders
Gets the configured headers.- Returns:
- the headers
-
getByteContent
public byte[] getByteContent()Gets the configured content bytes.- Returns:
null
if a String content has been configured
-
getStringContent
Gets the configured content String.- Returns:
null
if a byte content has been configured
-
getStatusCode
public int getStatusCode()Gets the configured status code.- Returns:
- the status code
-
getStatusMessage
Gets the configured status message.- Returns:
- the message
-
getCharset
Gets the configured charset.- Returns:
null
for byte content
-