Class JaxWsServiceFactory<AuditDatasetType extends WsAuditDataset>
java.lang.Object
org.openehealth.ipf.commons.ihe.ws.JaxWsServiceFactory<AuditDatasetType>
- Direct Known Subclasses:
JaxWsAsyncResponseServiceFactory
,JaxWsRequestServiceFactory
Factory for Web Services
- Author:
- Jens Riemschneider
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AuditContext
protected final AuditStrategy<AuditDatasetType>
Server-side ATNA audit strategy.protected final InterceptorProvider
User-defined custom CXF interceptors.protected final WsRejectionHandlingStrategy
User-defined strategy for handling rejected messages.protected final String
Service endpoint address.protected final WsTransactionConfiguration<AuditDatasetType>
Transaction configuration. -
Constructor Summary
ConstructorDescriptionJaxWsServiceFactory
(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceAddress, AuditStrategy<AuditDatasetType> auditStrategy, AuditContext auditContext, InterceptorProvider customInterceptors, WsRejectionHandlingStrategy rejectionHandlingStrategy) Constructs the factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureInterceptors
(org.apache.cxf.frontend.ServerFactoryBean svrFactory) Called to configure any interceptors of the service.org.apache.cxf.frontend.ServerFactoryBean
createServerFactory
(Class<?> serviceImplClass) Creates and configures a server factory.org.apache.cxf.frontend.ServerFactoryBean
createServerFactory
(Object serviceImpl)
-
Field Details
-
wsTransactionConfiguration
protected final WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset> wsTransactionConfigurationTransaction configuration. -
serviceAddress
Service endpoint address. -
customInterceptors
User-defined custom CXF interceptors. -
rejectionHandlingStrategy
User-defined strategy for handling rejected messages. -
auditStrategy
Server-side ATNA audit strategy. -
auditContext
-
-
Constructor Details
-
JaxWsServiceFactory
public JaxWsServiceFactory(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration, String serviceAddress, AuditStrategy<AuditDatasetType> auditStrategy, AuditContext auditContext, 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 Details
-
createServerFactory
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
-
configureInterceptors
protected void configureInterceptors(org.apache.cxf.frontend.ServerFactoryBean svrFactory) Called to configure any interceptors of the service.- Parameters:
svrFactory
- the server factory.
-