Package org.htmlunit
Class MockWebConnection.RawResponseData
- java.lang.Object
-
- org.htmlunit.MockWebConnection.RawResponseData
-
- Enclosing class:
- MockWebConnection
public static class MockWebConnection.RawResponseData extends java.lang.Object
Contains the raw data configured for a response.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getByteContent()
Gets the configured content bytes.java.nio.charset.Charset
getCharset()
Gets the configured charset.java.util.List<NameValuePair>
getHeaders()
Gets the configured headers.int
getStatusCode()
Gets the configured status code.java.lang.String
getStatusMessage()
Gets the configured status message.java.lang.String
getStringContent()
Gets the configured content String.
-
-
-
Method Detail
-
getHeaders
public java.util.List<NameValuePair> 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
public java.lang.String 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
public java.lang.String getStatusMessage()
Gets the configured status message.- Returns:
- the message
-
getCharset
public java.nio.charset.Charset getCharset()
Gets the configured charset.- Returns:
null
for byte content
-
-