Class MockWebConnection.RawResponseData
java.lang.Object
org.htmlunit.MockWebConnection.RawResponseData
- Enclosing class:
MockWebConnection
Contains the raw data configured for a response.
- Author:
- Mike Bowler, Noboru Sinohara, Marc Guillemot, Brad Clarke, Ahmed Ashour, Ronald Brill
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the configured content bytes.Gets the configured charset.Gets the configured headers.intGets the configured status code.Gets the configured status message.Gets the configured content String.
-
Method Details
-
getHeaders
-
getByteContent
public byte[] getByteContent()Gets the configured content bytes.- Returns:
nullif a String content has been configured
-
getStringContent
Gets the configured content String.- Returns:
nullif a byte content has been configured
-
getStatusCode
public int getStatusCode()Gets the configured status code.- Returns:
- the status code
-
getStatusMessage
-
getCharset
-