@Immutable public class RequestContentHC4 extends java.lang.Object implements org.apache.http.HttpRequestInterceptor
Content-Length or Transfer-Content headers based
on the properties of the enclosed entity and the protocol version.
This interceptor is required for correct functioning of client side protocol
processors.| Constructor and Description |
|---|
RequestContentHC4()
Default constructor.
|
RequestContentHC4(boolean overwrite)
Constructor that can be used to fine-tune behavior of this interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
public RequestContentHC4()
Content-Length or Transfer-Encoding
will cause the interceptor to throw ProtocolException if already present in the
response message.public RequestContentHC4(boolean overwrite)
overwrite - If set to true the Content-Length and
Transfer-Encoding headers will be created or updated if already present.
If set to false the Content-Length and
Transfer-Encoding headers will cause the interceptor to throw
ProtocolException if already present in the response message.public void process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
java.io.IOException
process in interface org.apache.http.HttpRequestInterceptororg.apache.http.HttpExceptionjava.io.IOExceptionCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.