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
FieldsModifier and TypeFieldDescriptionprotected final AuditContextprotected final AuditStrategy<AuditDatasetType> protected final org.vibur.objectpool.PoolService<Object> protected final AsynchronyCorrelator<AuditDatasetType> protected final InterceptorProviderprotected final List<AbstractFeature> protected final org.apache.cxf.transports.http.configuration.HTTPClientPolicystatic final Stringprotected final WsSecurityInformationprotected final Stringprotected final WsTransactionConfiguration<AuditDatasetType> -
Constructor Summary
ConstructorsConstructorDescriptionJaxWsClientFactory(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 voidconfigureInterceptors(Client client) Configures SOAP interceptors for the given client.protected voidconfigureProperties(Client client) Returns a client stub for the web-service.protected static voidinstallPayloadInterceptors(Client client) Helper method for installing of payload-collecting SOAP interceptors for the given Client.voidrestoreClient(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,nullvalues are safe.
-