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 server side protocol
processors.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ResponseContent(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 HttpResponse
The HttpResponse to modify. response, final HttpContext Unused. context)Implements org. |
| overwrite | back to summary |
|---|---|
| private final boolean overwrite | |
| ResponseContent | back to summary |
|---|---|
| public ResponseContent() Default constructor. The | |
| ResponseContent | back to summary |
|---|---|
| public ResponseContent(final boolean overwrite) Constructor that can be used to fine-tune behavior of this interceptor.
| |
| process | back to summary |
|---|---|
| public void process(final HttpResponse response, final HttpContext context) throws HttpException, IOException Implements org. Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
| |