@Contract(threading=IMMUTABLE) public class RequestClientConnControl extends Object implements HttpRequestInterceptor
Connection
or Proxy-Connection
headers to the outgoing requests, which
is essential for managing persistence of HTTP/1.0
connections.Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
log |
private static String |
PROXY_CONN_DIRECTIVE |
Constructor and Description |
---|
RequestClientConnControl() |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpRequest request,
HttpContext context)
Processes a request.
|
private final org.apache.commons.logging.Log log
private static final String PROXY_CONN_DIRECTIVE
public RequestClientConnControl()
public void process(HttpRequest request, HttpContext context) throws HttpException, IOException
HttpRequestInterceptor
process
in interface HttpRequestInterceptor
request
- the request to preprocesscontext
- the context for the requestHttpException
- in case of an HTTP protocol violationIOException
- in case of an I/O errorWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses