public class DefaultProxyProcessingChainBuilder extends AbstractProxyProcessingChainBuilder
ProxyProcessingChainBuilder implementation.| Constructor and Description |
|---|
DefaultProxyProcessingChainBuilder()
Zero-argument default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ProxyProcessingChain |
createDefaultPostprocessingCommand(ProxyMappingRegistry proxyMappingRegistry,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
HttpClientContextBuilder httpClientContextBuilder)
Creates a
ProxyProcessingChain which contains all the Commands in the post-processing phase. |
protected ProxyProcessingChain |
createDefaultPreprocessingCommand(ProxyMappingRegistry proxyMappingRegistry,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
HttpClientContextBuilder httpClientContextBuilder)
Creates a
ProxyProcessingChain which contains all the Commands in the pre-processing phase. |
protected ProxyProcessingChain |
createDefaultProcessingCommand(ProxyMappingRegistry proxyMappingRegistry,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
HttpClientContextBuilder httpClientContextBuilder)
Creates a
ProxyProcessingChain which contains all the Commands in the core processing phase. |
protected void |
initializeCommands(ProxyMappingRegistry proxyMappingRegistry,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
HttpClientContextBuilder httpClientContextBuilder)
Initializes all the internal commands to be used by the root
Chain on
AbstractProxyProcessingChainBuilder.build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder) call. |
addCommand, build, removeAllCommands, removeCommandpublic DefaultProxyProcessingChainBuilder()
protected void initializeCommands(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
Chain on
AbstractProxyProcessingChainBuilder.build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder) call.
An implementation may invoke AbstractProxyProcessingChainBuilder.addCommand(Command), AbstractProxyProcessingChainBuilder.removeCommand(Command)
and AbstractProxyProcessingChainBuilder.removeAllCommands() during the initialization.
The implementation adds three Chain commands for each reverse proxy processing phase.
That is, pre-processing phase, processing phase and post-processing phase.
In pre-processing phase, all the initialization related Commands are added.
In processing phase, core reverse proxy processing Commands are added.
In post-processing phase, all the resource cleanup related Commands are added.
The Chain for pre-processing phase is created by createDefaultPreprocessingCommand(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder).
The Chain for processing phase is created by createDefaultProcessingCommand(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder).
Finally the Chain for post-processing phase is created by createDefaultPostprocessingCommand(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder).
initializeCommands in class AbstractProxyProcessingChainBuilderprotected ProxyProcessingChain createDefaultPreprocessingCommand(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
ProxyProcessingChain which contains all the Commands in the pre-processing phase.proxyMappingRegistry - httpClientBuilder - httpClientContextBuilder - protected ProxyProcessingChain createDefaultProcessingCommand(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
ProxyProcessingChain which contains all the Commands in the core processing phase.proxyMappingRegistry - httpClientBuilder - httpClientContextBuilder - protected ProxyProcessingChain createDefaultPostprocessingCommand(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
ProxyProcessingChain which contains all the Commands in the post-processing phase.proxyMappingRegistry - httpClientBuilder - httpClientContextBuilder - Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.