Class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset>
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.ws.JaxWsClientFactory<AuditDatasetType>
-
- Direct Known Subclasses:
Hl7v3DeferredResponderFactory
,JaxWsRequestClientFactory
public class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset> extends Object
Factory for ITI Web Service stubs.- Author:
- Jens Riemschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected AuditContext
auditContext
protected AuditStrategy<AuditDatasetType>
auditStrategy
protected org.vibur.objectpool.PoolService<Object>
clientPool
protected AsynchronyCorrelator<AuditDatasetType>
correlator
protected InterceptorProvider
customInterceptors
protected List<AbstractFeature>
features
static String
POOL_SIZE_PROPERTY
protected Map<String,Object>
properties
protected WsSecurityInformation
securityInformation
protected String
serviceUrl
protected WsTransactionConfiguration<AuditDatasetType>
wsTransactionConfiguration
-
Constructor Summary
Constructors Constructor Description 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)
Constructs the factory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureInterceptors(Client client)
Configures SOAP interceptors for the given client.protected void
configureProperties(Client client)
Object
getClient()
Returns a client stub for the web-service.WsTransactionConfiguration<AuditDatasetType>
getWsTransactionConfiguration()
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 Detail
-
POOL_SIZE_PROPERTY
public static final String POOL_SIZE_PROPERTY
-
clientPool
protected final org.vibur.objectpool.PoolService<Object> clientPool
-
wsTransactionConfiguration
protected final WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset> wsTransactionConfiguration
-
serviceUrl
protected final String serviceUrl
-
customInterceptors
protected final InterceptorProvider customInterceptors
-
features
protected final List<AbstractFeature> features
-
auditStrategy
protected final AuditStrategy<AuditDatasetType extends WsAuditDataset> auditStrategy
-
auditContext
protected final AuditContext auditContext
-
correlator
protected final AsynchronyCorrelator<AuditDatasetType extends WsAuditDataset> correlator
-
securityInformation
protected final WsSecurityInformation securityInformation
-
-
Constructor Detail
-
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)
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 Detail
-
getClient
public Object getClient()
Returns a client stub for the web-service.- Returns:
- the client stub
-
getWsTransactionConfiguration
public WsTransactionConfiguration<AuditDatasetType> getWsTransactionConfiguration()
- Returns:
- the service info of this factory.
-
configureInterceptors
protected void configureInterceptors(Client client)
Configures SOAP interceptors for the given client.
-
configureProperties
protected void configureProperties(Client client)
-
installPayloadInterceptors
protected static void installPayloadInterceptors(Client client)
Helper method for installing of payload-collecting SOAP interceptors for the given Client.
-
restoreClient
public void restoreClient(Object client)
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.
-
-