/src/main/java/org/htmlunit/MockWebConnection.java
defaultResponse_ = buildRawResponseData( content, statusCode, statusMessage, contentType, null) ;final RawResponseData responseEntry = buildRawResponseData( content, statusCode, statusMessage, contentType, headers) ;
final RawResponseData responseEntry = buildRawResponseData ( content, statusCode, statusMessage, contentType, headers ) ;
public void setThrowable(final URL url, final IOException throwable) { throwableMap_.put(url.toExternalForm(), throwable); } public void setResponse(final URL url, final byte[] content, final int statusCode, final String statusMessage, final String contentType, final List<NameValuePair> headers) { <extra_id_0> responseMap_.put(url.toExternalForm(), responseEntry); } private static RawResponseData buildRawResponseData(final byte[] content, final int statusCode, final String statusMessage, final String contentType, final List<NameValuePair> headers) { return new RawResponseData(content, statusCode, statusMessage, contentType, headers); }