final class MockWebResponseBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_STATUS_MESSAGE |
private MockHttpServletResponse |
response |
private long |
startTime |
private WebRequest |
webRequest |
Constructor and Description |
---|
MockWebResponseBuilder(long startTime,
WebRequest webRequest,
MockHttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
WebResponse |
build() |
(package private) static com.gargoylesoftware.htmlunit.util.Cookie |
createCookie(Cookie cookie) |
private java.util.List<NameValuePair> |
responseHeaders() |
private java.lang.String |
statusMessage(int statusCode) |
private java.lang.String |
valueOfCookie(Cookie cookie) |
private WebResponseData |
webResponseData() |
private static final java.lang.String DEFAULT_STATUS_MESSAGE
private final long startTime
private final WebRequest webRequest
private final MockHttpServletResponse response
public MockWebResponseBuilder(long startTime, WebRequest webRequest, MockHttpServletResponse response)
public WebResponse build() throws java.io.IOException
java.io.IOException
private WebResponseData webResponseData() throws java.io.IOException
java.io.IOException
private java.lang.String statusMessage(int statusCode)
private java.util.List<NameValuePair> responseHeaders()
private java.lang.String valueOfCookie(Cookie cookie)
static com.gargoylesoftware.htmlunit.util.Cookie createCookie(Cookie cookie)