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

public Class H2RequestTargetHost

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

HTTP/2 compatible extension of RequestTargetHost.
Since
5.0

Field Summary

Modifier and TypeField and Description
public static final H2RequestTargetHost

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpRequest
the request to process
request
,
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.RequestTargetHost.process.

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

Processes a request.

Field Detail

INSTANCEback to summary
public static final H2RequestTargetHost INSTANCE

Hides org.apache.hc.core5.http.protocol.RequestTargetHost.INSTANCE.

Singleton instance.

Since
5.2

Constructor Detail

H2RequestTargetHostback to summary
public H2RequestTargetHost()

Method Detail

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

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

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

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

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.

Parameters
request:HttpRequest

the request 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