OutboundMessageType - the outbound message typeInboundMessageType - the inbound message type@ThreadSafe public class PipelineFactoryHttpSOAPClient<OutboundMessageType,InboundMessageType> extends AbstractPipelineHttpSOAPClient<OutboundMessageType,InboundMessageType>
HttpClientMessagePipeline, produced at runtime from an instance of
HttpClientMessagePipelineFactory.| Modifier and Type | Class and Description |
|---|---|
static class |
PipelineFactoryHttpSOAPClient.DefaultPipelineNameStrategy
Default strategy for resolving SOAP client message pipeline name from the
SOAPClientContext.getPipelineName() which is a direct child of the input operation context. |
SOAPClient.SOAPRequestParameters| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private HttpClientMessagePipelineFactory<InboundMessageType,OutboundMessageType> |
pipelineFactory
Factory for the client message pipeline.
|
private com.google.common.base.Function<InOutOperationContext<?,?>,String> |
pipelineNameStrategy
Strategy function used to resolve the pipeline name to execute.
|
| Constructor and Description |
|---|
PipelineFactoryHttpSOAPClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doInitialize() |
protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> |
newPipeline()
Get a new instance of the
HttpClientMessagePipeline to be processed. |
protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> |
newPipeline(String name)
Get a new instance of the
HttpClientMessagePipeline to be processed. |
protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> |
resolvePipeline(InOutOperationContext operationContext)
Resolve and return a new instance of the
HttpClientMessagePipeline to be processed. |
protected String |
resolvePipelineName(InOutOperationContext operationContext)
Resolve the name of the pipeline to use.
|
void |
setPipelineFactory(HttpClientMessagePipelineFactory<InboundMessageType,OutboundMessageType> factory)
Set the message pipeline factory.
|
void |
setPipelineNameStrategy(com.google.common.base.Function<InOutOperationContext<?,?>,String> function)
Set the strategy function used to resolve the name of the pipeline to use.
|
buildHttpContext, buildHttpRequest, buildTLSCriteriaSet, checkTLSCredentialTrusted, getHttpClient, getHttpClientSecurityParameters, getTLSCriteriaSetStrategy, resolveClientContext, resolveContextSecurityParameters, send, setHttpClient, setHttpClientSecurityParameters, setTLSCriteriaSetStrategydestroy, initialize, isDestroyed, isInitializedprivate org.slf4j.Logger log
private HttpClientMessagePipelineFactory<InboundMessageType,OutboundMessageType> pipelineFactory
private com.google.common.base.Function<InOutOperationContext<?,?>,String> pipelineNameStrategy
public void setPipelineFactory(@Nonnull HttpClientMessagePipelineFactory<InboundMessageType,OutboundMessageType> factory)
factory - the message pipeline factorypublic void setPipelineNameStrategy(@Nullable com.google.common.base.Function<InOutOperationContext<?,?>,String> function)
function - the strategy function, or nullprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractPipelineHttpSOAPClient<OutboundMessageType,InboundMessageType>ComponentInitializationExceptionprotected void doDestroy()
doDestroy in class AbstractPipelineHttpSOAPClient<OutboundMessageType,InboundMessageType>@Nonnull protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> resolvePipeline(InOutOperationContext operationContext) throws SOAPException
HttpClientMessagePipeline to be processed.
Each call to this (factory) method MUST produce a new instance of the pipeline.
The behavior of this subclass specialization is to use a factory strategy using
a configured instance of HttpClientMessagePipeline. See
resolvePipelineName(InOutOperationContext) and
newPipeline(String).
resolvePipeline in class AbstractPipelineHttpSOAPClient<OutboundMessageType,InboundMessageType>operationContext - the current operation contextSOAPException - if there is an error obtaining a new pipeline instance@Nonnull protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> newPipeline() throws SOAPException
HttpClientMessagePipeline to be processed.
Each call to this (factory) method MUST produce a new instance of the pipeline.
The behavior of this subclass specialization is to use a factory strategy using
a configured instance of HttpClientMessagePipeline.
newPipeline in class AbstractPipelineHttpSOAPClient<OutboundMessageType,InboundMessageType>SOAPException - if there is an error obtaining a new pipeline instance@Nullable protected HttpClientMessagePipeline<InboundMessageType,OutboundMessageType> newPipeline(@Nullable String name) throws SOAPException
HttpClientMessagePipeline to be processed.
Each call to this (factory) method MUST produce a new instance of the pipeline.
The behavior of this subclass specialization is to use a factory strategy using
a configured instance of HttpClientMessagePipeline.
name - the name of pipeline to returnSOAPException - if there is an error obtaining a new pipeline instance@Nullable protected String resolvePipelineName(@Nonnull InOutOperationContext operationContext)
operationContext - the current operation contextCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.