Top Description Fields Constructors Methods
org.apache.hc.core5.http2.protocol

public Class H2ResponseConnControl

extends ResponseConnControl
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
java.io.IOException, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.EntityDetails, .HttpException, .HttpResponse, .ProtocolVersion, org.apache.hc.core5.http.protocol.HttpContext, .ResponseConnControl, org.apache.hc.core5.util.Args

HTTP/2 compatible extension of ResponseConnControl.
Since
5.0

Field Summary

Modifier and TypeField and Description
public static final H2ResponseConnControl
INSTANCE

Singleton instance.

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
)

Overrides org.apache.hc.core5.http.protocol.ResponseConnControl.process.

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

Processes a response.

Field Detail

INSTANCEback to summary
public static final H2ResponseConnControl INSTANCE

Singleton instance.

Since
5.2

Constructor Detail

H2ResponseConnControlback to summary
public H2ResponseConnControl()

Method Detail

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

Overrides org.apache.hc.core5.http.protocol.ResponseConnControl.process.

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