Class JaxWsServiceFactory<AuditDatasetType extends WsAuditDataset>
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.ws.JaxWsServiceFactory<AuditDatasetType>
-
- Direct Known Subclasses:
JaxWsAsyncResponseServiceFactory,JaxWsRequestServiceFactory
public class JaxWsServiceFactory<AuditDatasetType extends WsAuditDataset> extends Object
Factory for Web Services- Author:
- Jens Riemschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openehealth.ipf.commons.audit.AuditContextauditContextprotected AuditStrategy<AuditDatasetType>auditStrategyServer-side ATNA audit strategy.protected org.apache.cxf.interceptor.InterceptorProvidercustomInterceptorsUser-defined custom CXF interceptors.protected WsRejectionHandlingStrategyrejectionHandlingStrategyUser-defined strategy for handling rejected messages.protected StringserviceAddressService endpoint address.protected WsTransactionConfiguration<AuditDatasetType>wsTransactionConfigurationTransaction configuration.
-
Constructor Summary
Constructors Constructor Description JaxWsServiceFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceAddress, AuditStrategy<AuditDatasetType> auditStrategy, org.openehealth.ipf.commons.audit.AuditContext auditContext, org.apache.cxf.interceptor.InterceptorProvider customInterceptors, WsRejectionHandlingStrategy rejectionHandlingStrategy)Constructs the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureInterceptors(org.apache.cxf.frontend.ServerFactoryBean svrFactory)Called to configure any interceptors of the service.org.apache.cxf.frontend.ServerFactoryBeancreateServerFactory(Class<?> serviceImplClass)Creates and configures a server factory.org.apache.cxf.frontend.ServerFactoryBeancreateServerFactory(Object serviceImpl)
-
-
-
Field Detail
-
wsTransactionConfiguration
protected final WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset> wsTransactionConfiguration
Transaction configuration.
-
serviceAddress
protected final String serviceAddress
Service endpoint address.
-
customInterceptors
protected final org.apache.cxf.interceptor.InterceptorProvider customInterceptors
User-defined custom CXF interceptors.
-
rejectionHandlingStrategy
protected final WsRejectionHandlingStrategy rejectionHandlingStrategy
User-defined strategy for handling rejected messages.
-
auditStrategy
protected final AuditStrategy<AuditDatasetType extends WsAuditDataset> auditStrategy
Server-side ATNA audit strategy.
-
auditContext
protected final org.openehealth.ipf.commons.audit.AuditContext auditContext
-
-
Constructor Detail
-
JaxWsServiceFactory
public JaxWsServiceFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceAddress, AuditStrategy<AuditDatasetType> auditStrategy, org.openehealth.ipf.commons.audit.AuditContext auditContext, org.apache.cxf.interceptor.InterceptorProvider customInterceptors, WsRejectionHandlingStrategy rejectionHandlingStrategy)
Constructs the factory.- Parameters:
wsTransactionConfiguration- the info about the service to produce.serviceAddress- the address of the service that it should be published with.auditStrategy- server-side ATNA audit strategy.customInterceptors- user-defined custom CXF interceptors.rejectionHandlingStrategy- user-defined rejection handling strategy.
-
-
Method Detail
-
createServerFactory
public org.apache.cxf.frontend.ServerFactoryBean createServerFactory(Class<?> serviceImplClass)
Creates and configures a server factory. Use the server factory to create a server instance that can be used to start and stop the service.- Parameters:
serviceImplClass- the type of the service implementation.- Returns:
- the server factory.
-
createServerFactory
public org.apache.cxf.frontend.ServerFactoryBean createServerFactory(Object serviceImpl)
-
configureInterceptors
protected void configureInterceptors(org.apache.cxf.frontend.ServerFactoryBean svrFactory)
Called to configure any interceptors of the service.- Parameters:
svrFactory- the server factory.
-
-