Instantiates a WebRequest for the specified URL. @param url the target URL @param acceptHeader the accept header to use @param acceptEncodingHeader the accept encoding header to use
(final URL url, final String acceptHeader, final String acceptEncodingHeader)
| 100 | * @param acceptEncodingHeader the accept encoding header to use |
| 101 | */ |
| 102 | public WebRequest(final URL url, final String acceptHeader, final String acceptEncodingHeader) { |
| 103 | setUrl(url); |
| 104 | if (acceptHeader != null) { |
| 105 | setAdditionalHeader(HttpHeader.ACCEPT, acceptHeader); |
| 106 | } |
| 107 | if (acceptEncodingHeader != null) { |
| 108 | setAdditionalHeader(HttpHeader.ACCEPT_ENCODING, acceptEncodingHeader); |
| 109 | } |
| 110 | timeout_ = -1; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Instantiates a {@link WebRequest} for the specified URL. |
nothing calls this directly
no test coverage detected