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.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RequestContent(final boolean
If set to overwrite)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.Constructor that can be used to fine-tune behavior of this interceptor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | process(final HttpRequest
the request to preprocess request, final HttpContext the context for the request context)Implements org. |
| overwrite | back to summary |
|---|---|
| private final boolean overwrite | |
| RequestContent | back to summary |
|---|---|
| public RequestContent() Default constructor. The | |
| RequestContent | back to summary |
|---|---|
| public RequestContent(final boolean overwrite) Constructor that can be used to fine-tune behavior of this interceptor.
| |
| process | back to summary |
|---|---|
| public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException Implements org. Doc from org. Processes a request. On the client side, this step is performed before the request is sent to the server. On the server side, this step is performed on incoming messages before the message body is evaluated.
| |