public final class HttpProcessors extends Object
HttpProcessor instances.| Constructor and Description |
|---|
HttpProcessors() |
| Modifier and Type | Method and Description |
|---|---|
static HttpProcessor |
client()
Creates
HttpProcessor initialized with default protocol interceptors
for client side HTTP/1.1 processing. |
static HttpProcessor |
client(String agentInfo)
Creates
HttpProcessor initialized with default protocol interceptors
for client side HTTP/1.1 processing. |
static HttpProcessor |
client(String agentInfo,
boolean strict)
Creates an
HttpProcessor for client-side HTTP/2 processing. |
static HttpProcessor |
clientStrict()
Creates an
HttpProcessor for client-side HTTP/2 processing
with strict protocol validation interceptors by default. |
static HttpProcessor |
clientStrict(String agentInfo)
Creates an
HttpProcessor for client-side HTTP/2 processing
with strict protocol validation interceptors, using the specified agent information. |
static HttpProcessorBuilder |
customClient(String agentInfo)
Creates
HttpProcessorBuilder initialized with default protocol interceptors
for client side HTTP/1.1 processing. |
static HttpProcessorBuilder |
customClient(String agentInfo,
boolean strict)
Creates
HttpProcessorBuilder initialized with default protocol interceptors
for client side HTTP/1.1 processing. |
static HttpProcessorBuilder |
customServer(String serverInfo)
Creates
HttpProcessorBuilder initialized with default protocol interceptors
for server side HTTP/1.1 processing. |
static HttpProcessor |
server()
Creates
HttpProcessor initialized with default protocol interceptors
for server side HTTP/1.1 processing. |
static HttpProcessor |
server(String serverInfo)
Creates
HttpProcessor initialized with default protocol interceptors
for server side HTTP/1.1 processing. |
static HttpProcessorBuilder |
strictClient(String agentInfo)
Creates an
HttpProcessorBuilder initialized with strict protocol interceptors
for client-side HTTP/1.1 processing. |
public static HttpProcessorBuilder customServer(String serverInfo)
HttpProcessorBuilder initialized with default protocol interceptors
for server side HTTP/1.1 processing.serverInfo - the server info text or null for default.public static HttpProcessor server(String serverInfo)
HttpProcessor initialized with default protocol interceptors
for server side HTTP/1.1 processing.serverInfo - the server info text or null for default.public static HttpProcessor server()
HttpProcessor initialized with default protocol interceptors
for server side HTTP/1.1 processing.public static HttpProcessorBuilder customClient(String agentInfo)
HttpProcessorBuilder initialized with default protocol interceptors
for client side HTTP/1.1 processing.agentInfo - the agent info text or null for default.public static HttpProcessorBuilder strictClient(String agentInfo)
HttpProcessorBuilder initialized with strict protocol interceptors
for client-side HTTP/1.1 processing.
This configuration enforces stricter validation and processing of client requests,
ensuring compliance with the HTTP protocol. It includes interceptors for handling
target hosts, content, connection controls, and TE header validation, among others.
The user agent can be customized using the provided agentInfo parameter.
agentInfo - the user agent info to be included in the User-Agent header.
If null or blank, a default value will be used.HttpProcessorBuilder configured with strict client-side interceptors.public static HttpProcessorBuilder customClient(String agentInfo, boolean strict)
HttpProcessorBuilder initialized with default protocol interceptors
for client side HTTP/1.1 processing.agentInfo - the agent info text or null for default.public static HttpProcessor client(String agentInfo)
HttpProcessor initialized with default protocol interceptors
for client side HTTP/1.1 processing.agentInfo - the agent info text or null for default.public static HttpProcessor client()
HttpProcessor initialized with default protocol interceptors
for client side HTTP/1.1 processing.public static HttpProcessor client(String agentInfo, boolean strict)
HttpProcessor for client-side HTTP/2 processing.
This method allows the option to include strict protocol interceptors.agentInfo - the agent info text or null for default.strict - if true, strict protocol interceptors will be added, including the TE header validation.public static HttpProcessor clientStrict()
HttpProcessor for client-side HTTP/2 processing
with strict protocol validation interceptors by default.
Strict validation includes additional checks such as validating the TE header.
public static HttpProcessor clientStrict(String agentInfo)
HttpProcessor for client-side HTTP/2 processing
with strict protocol validation interceptors, using the specified agent information.
Strict validation includes additional checks such as validating the TE header.
agentInfo - the agent info text or null for default.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.