public class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.openehealth.ipf.commons.audit.AuditContext |
auditContext |
protected AuditStrategy<AuditDatasetType> |
auditStrategy |
protected org.vibur.objectpool.PoolService<Object> |
clientPool |
protected AsynchronyCorrelator<AuditDatasetType> |
correlator |
protected org.apache.cxf.interceptor.InterceptorProvider |
customInterceptors |
protected List<org.apache.cxf.feature.AbstractFeature> |
features |
static String |
POOL_SIZE_PROPERTY |
protected Map<String,Object> |
properties |
protected WsSecurityInformation |
securityInformation |
protected String |
serviceUrl |
protected WsTransactionConfiguration<AuditDatasetType> |
wsTransactionConfiguration |
| Constructor and Description |
|---|
JaxWsClientFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration,
String serviceUrl,
AuditStrategy<AuditDatasetType> auditStrategy,
org.openehealth.ipf.commons.audit.AuditContext auditContext,
org.apache.cxf.interceptor.InterceptorProvider customInterceptors,
List<org.apache.cxf.feature.AbstractFeature> features,
Map<String,Object> properties,
AsynchronyCorrelator<AuditDatasetType> correlator,
WsSecurityInformation securityInformation)
Constructs the factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureInterceptors(org.apache.cxf.endpoint.Client client)
Configures SOAP interceptors for the given client.
|
protected void |
configureProperties(org.apache.cxf.endpoint.Client client) |
Object |
getClient()
Returns a client stub for the web-service.
|
WsTransactionConfiguration<AuditDatasetType> |
getWsTransactionConfiguration() |
protected static void |
installPayloadInterceptors(org.apache.cxf.endpoint.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 via
getClient()) to the pool. |
public static final String POOL_SIZE_PROPERTY
protected final org.vibur.objectpool.PoolService<Object> clientPool
protected final WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset> wsTransactionConfiguration
protected final String serviceUrl
protected final org.apache.cxf.interceptor.InterceptorProvider customInterceptors
protected final List<org.apache.cxf.feature.AbstractFeature> features
protected final AuditStrategy<AuditDatasetType extends WsAuditDataset> auditStrategy
protected final org.openehealth.ipf.commons.audit.AuditContext auditContext
protected final AsynchronyCorrelator<AuditDatasetType extends WsAuditDataset> correlator
protected final WsSecurityInformation securityInformation
public JaxWsClientFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceUrl, AuditStrategy<AuditDatasetType> auditStrategy, org.openehealth.ipf.commons.audit.AuditContext auditContext, org.apache.cxf.interceptor.InterceptorProvider customInterceptors, List<org.apache.cxf.feature.AbstractFeature> features, Map<String,Object> properties, AsynchronyCorrelator<AuditDatasetType> correlator, WsSecurityInformation securityInformation)
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.public Object getClient()
public WsTransactionConfiguration<AuditDatasetType> getWsTransactionConfiguration()
protected void configureInterceptors(org.apache.cxf.endpoint.Client client)
protected void configureProperties(org.apache.cxf.endpoint.Client client)
protected static void installPayloadInterceptors(org.apache.cxf.endpoint.Client client)
public void restoreClient(Object client)
getClient()) to the pool.
This method MUST be called as soon as the use of the port stub is finished.client - client stub, null values are safe.Copyright © 2020 Open eHealth Foundation. All rights reserved.