Class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset>
java.lang.Object
org.openehealth.ipf.commons.ihe.ws.JaxWsClientFactory<AuditDatasetType>
- Direct Known Subclasses:
Hl7v3DeferredResponderFactory
,JaxWsRequestClientFactory
Factory for ITI Web Service stubs.
- Author:
- Jens Riemschneider
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AuditContext
protected final AuditStrategy<AuditDatasetType>
protected final org.vibur.objectpool.PoolService<Object>
protected final AsynchronyCorrelator<AuditDatasetType>
protected final InterceptorProvider
protected final List<AbstractFeature>
protected final org.apache.cxf.transports.http.configuration.HTTPClientPolicy
static final String
protected final WsSecurityInformation
protected final String
protected final WsTransactionConfiguration<AuditDatasetType>
-
Constructor Summary
ConstructorDescriptionJaxWsClientFactory
(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceUrl, AuditStrategy<AuditDatasetType> auditStrategy, AuditContext auditContext, InterceptorProvider customInterceptors, List<AbstractFeature> features, Map<String, Object> properties, AsynchronyCorrelator<AuditDatasetType> correlator, WsSecurityInformation securityInformation, org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy) Constructs the factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureInterceptors
(Client client) Configures SOAP interceptors for the given client.protected void
configureProperties
(Client client) Returns a client stub for the web-service.protected static void
installPayloadInterceptors
(Client client) Helper method for installing of payload-collecting SOAP interceptors for the given Client.void
restoreClient
(Object client) Returns a client stub (previously gained viagetClient()
) to the pool.
-
Field Details
-
POOL_SIZE_PROPERTY
-
clientPool
-
wsTransactionConfiguration
protected final WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset> wsTransactionConfiguration -
serviceUrl
-
customInterceptors
-
features
-
properties
-
auditStrategy
-
auditContext
-
correlator
-
securityInformation
-
httpClientPolicy
protected final org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy
-
-
Constructor Details
-
JaxWsClientFactory
public JaxWsClientFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceUrl, AuditStrategy<AuditDatasetType> auditStrategy, AuditContext auditContext, InterceptorProvider customInterceptors, List<AbstractFeature> features, Map<String, Object> properties, AsynchronyCorrelator<AuditDatasetType> correlator, WsSecurityInformation securityInformation, org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy) Constructs the factory.- Parameters:
wsTransactionConfiguration
- the info about the Web Service.serviceUrl
- the URL of the Web Service.auditStrategy
- client-side ATNA audit strategy.customInterceptors
- user-defined custom CXF interceptors.correlator
- optional asynchrony correlator.
-
-
Method Details
-
getClient
Returns a client stub for the web-service.- Returns:
- the client stub
-
getWsTransactionConfiguration
- Returns:
- the service info of this factory.
-
configureInterceptors
Configures SOAP interceptors for the given client. -
configureProperties
-
installPayloadInterceptors
Helper method for installing of payload-collecting SOAP interceptors for the given Client. -
restoreClient
Returns a client stub (previously gained viagetClient()
) to the pool. This method MUST be called as soon as the use of the port stub is finished.- Parameters:
client
- client stub,null
values are safe.
-