/src/main/java/org/htmlunit/MockWebConnection.java
responseMap_.put( url.toExternalForm( ) , responseEntry) ; headers) ;final RawResponseData responseEntry = buildRawResponseData( content, statusCode, statusMessage, contentType,
final RawResponseData responseEntry = buildRawResponseData ( content, statusCode, statusMessage, contentType, headers ) ; responseMap_.put ( url.toExternalForm ( ) , responseEntry ) ;
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> } 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); } private static RawResponseData buildRawResponseData(final String content, Charset charset, final int statusCode,