public class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuditStrategy<AuditDatasetType> |
auditStrategy |
protected org.apache.cxf.interceptor.InterceptorProvider |
customInterceptors |
protected String |
serviceUrl |
protected ThreadLocal<Object> |
threadLocalPort |
protected WsTransactionConfiguration |
wsTransactionConfiguration |
| Constructor and Description |
|---|
JaxWsClientFactory(WsTransactionConfiguration wsTransactionConfiguration,
String serviceUrl,
AuditStrategy<AuditDatasetType> auditStrategy,
org.apache.cxf.interceptor.InterceptorProvider customInterceptors)
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.
|
Object |
getClient()
Returns a client stub for the web-service.
|
WsTransactionConfiguration |
getWsTransactionConfiguration() |
protected static void |
installPayloadInterceptors(org.apache.cxf.endpoint.Client client)
Helper method for installing of payload-collecting SOAP interceptors
for the given Client.
|
protected final ThreadLocal<Object> threadLocalPort
protected final WsTransactionConfiguration wsTransactionConfiguration
protected final String serviceUrl
protected final org.apache.cxf.interceptor.InterceptorProvider customInterceptors
protected final AuditStrategy<AuditDatasetType extends WsAuditDataset> auditStrategy
public JaxWsClientFactory(WsTransactionConfiguration wsTransactionConfiguration, String serviceUrl, AuditStrategy<AuditDatasetType> auditStrategy, org.apache.cxf.interceptor.InterceptorProvider customInterceptors)
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.public Object getClient()
This method reuses the last stub created by the current thread.
public WsTransactionConfiguration getWsTransactionConfiguration()
protected void configureInterceptors(org.apache.cxf.endpoint.Client client)
protected static void installPayloadInterceptors(org.apache.cxf.endpoint.Client client)
Copyright © 2016 Open eHealth Foundation. All rights reserved.