public abstract class AbstractProxyProcessingChainBuilder extends Object implements ProxyProcessingChainBuilder
ProxyProcessingChain
builder class providing basic functionality
to add or remove internal Command
s.
An inherited implementation can simply implement initializeCommands(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder)
in order to add or remove Command
s before build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder)
gets called.
Constructor and Description |
---|
AbstractProxyProcessingChainBuilder()
Zero-argument default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommand(org.apache.commons.chain.Command command)
Adds the given
command to the internal Command list
which will be added to the root Chain on build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder) call. |
ProxyProcessingChain |
build(ProxyMappingRegistry proxyMappingRegistry,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
HttpClientContextBuilder httpClientContextBuilder)
Builds a
ProxyProcessingChain instance with given proxyMappingRegistry , httpClientBuilder and
httpClientContextBuilder . |
protected abstract 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
build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder) call. |
void |
removeAllCommands()
Removes all the commands from the internal
Command list. |
void |
removeCommand(org.apache.commons.chain.Command command)
Removes the given
command instance from the internal Command list. |
public AbstractProxyProcessingChainBuilder()
public ProxyProcessingChain build(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
ProxyProcessingChain
instance with given proxyMappingRegistry
, httpClientBuilder
and
httpClientContextBuilder
.build
in interface ProxyProcessingChainBuilder
public void addCommand(org.apache.commons.chain.Command command)
command
to the internal Command
list
which will be added to the root Chain
on build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder)
call.command
- public void removeCommand(org.apache.commons.chain.Command command)
command
instance from the internal Command
list.command
- public void removeAllCommands()
Command
list.protected abstract void initializeCommands(ProxyMappingRegistry proxyMappingRegistry, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, HttpClientContextBuilder httpClientContextBuilder)
Chain
on
build(ProxyMappingRegistry, HttpClientBuilder, HttpClientContextBuilder)
call.
An implementation may invoke addCommand(Command)
, removeCommand(Command)
and removeAllCommands()
during the initialization.
proxyMappingRegistry
- httpClientBuilder
- httpClientContextBuilder
- Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.