Top Description Constructors Methods
org.apache.hc.core5.http.protocol

public Class ResponseConnControl

extends Object
implements HttpResponseInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.HttpResponseInterceptor
Annotations
@Contract
threading:IMMUTABLE
Imports
java.io.IOException, java.util.Iterator, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.EntityDetails, .HeaderElement, .HeaderElements, .HttpException, .HttpHeaders, .HttpRequest, .HttpResponse, .HttpResponseInterceptor, .HttpStatus, .HttpVersion, .ProtocolVersion, org.apache.hc.core5.http.message.MessageSupport, org.apache.hc.core5.util.Args

ResponseConnControl is responsible for adding Connection header to the outgoing responses, which is essential for managing persistence of HTTP/1.0 connections. This interceptor is recommended for server side protocol processors.
Since
4.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpResponse
the response to process
response
,
final EntityDetails
the request entity details or null if not available
entity
,
final HttpContext
the context for the request
context
)

Implements org.apache.hc.core5.http.HttpResponseInterceptor.process.

Processes a response.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ResponseConnControlback to summary
public ResponseConnControl()

Method Detail

processback to summary
public void process(final HttpResponse response, final EntityDetails entity, final HttpContext context) throws HttpException, IOException

Implements org.apache.hc.core5.http.HttpResponseInterceptor.process.

Doc from org.apache.hc.core5.http.HttpResponseInterceptor.process.

Processes a response. On the server side, this step is performed before the response is sent to the client. On the client side, this step is performed on incoming messages before the message body is evaluated.

Parameters
response:HttpResponse

the response to process

entity:EntityDetails

the request entity details or null if not available

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
HttpException:
in case of an HTTP protocol violation
IOException:
in case of an I/O error