@ManagedResource(description="Managed IPF eHealth Web Service Endpoint") public abstract class AbstractWsEndpoint<AuditDatasetType extends WsAuditDataset,ConfigType extends WsTransactionConfiguration<AuditDatasetType>> extends org.apache.camel.impl.DefaultEndpoint implements AuditableEndpoint<AuditDatasetType>
Modifier and Type | Field and Description |
---|---|
static String |
CORRELATION_KEY_HEADER_NAME
Name of Camel message header where the user should store
the optional correlation key.
|
static String |
INCOMING_HTTP_HEADERS
Name of Camel message header where incoming HTTP headers
will be stored as a
Map<String, String> . |
static String |
INCOMING_SOAP_HEADERS
Name of Camel message header where incoming SOAP headers
will be stored as a
Map< . |
static String |
OUTGOING_HTTP_HEADERS
Name of Camel message header from where additional user-defined HTTP
headers will be taken as a
Map<String, String> . |
static String |
OUTGOING_SOAP_HEADERS
Name of Camel message header from where additional user-defined HTTP
headers will be taken as a
List<
or Map< . |
static String |
WSA_REPLYTO_HEADER_NAME
Name of incoming Camel header where the user should store the URL
of asynchronous response endpoint (WS-Addressing header "ReplyTo").
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractWsEndpoint(String endpointUri,
String address,
AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId<ConfigType>> component,
AuditContext auditContext,
org.apache.cxf.interceptor.InterceptorProvider customInterceptors,
List<org.apache.cxf.feature.AbstractFeature> features,
List<String> schemaLocations,
Map<String,Object> properties,
Class<? extends AbstractWebService> serviceClass)
Constructs the endpoint.
|
protected |
AbstractWsEndpoint(String endpointUri,
String address,
AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId<ConfigType>> component,
Map<String,Object> parameters,
Class<? extends AbstractWebService> serviceClass) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
AuditContext |
getAuditContext() |
AuditStrategy<AuditDatasetType> |
getClientAuditStrategy()
Returns client-side audit strategy instance.
|
AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId> |
getComponent() |
AsynchronyCorrelator<AuditDatasetType> |
getCorrelator()
Returns the correlator.
|
org.apache.cxf.interceptor.InterceptorProvider |
getCustomInterceptors()
Returns custom interceptors configured for this endpoint.
|
protected AbstractWebService |
getCustomServiceInstance(AbstractWsEndpoint<AuditDatasetType,ConfigType> endpoint)
Returns a new instance of a service class.
|
List<org.apache.cxf.feature.AbstractFeature> |
getFeatures() |
String |
getHomeCommunityId() |
HostnameVerifier |
getHostnameVerifier() |
abstract JaxWsClientFactory<AuditDatasetType> |
getJaxWsClientFactory() |
abstract JaxWsServiceFactory<AuditDatasetType> |
getJaxWsServiceFactory() |
String |
getPassword() |
abstract AbstractWsProducer<AuditDatasetType,ConfigType,?,?> |
getProducer(AbstractWsEndpoint<AuditDatasetType,ConfigType> endpoint,
JaxWsClientFactory<AuditDatasetType> clientFactory)
Constructs and returns a transaction-specific Camel producer instance
|
Map<String,Object> |
getProperties() |
WsRejectionHandlingStrategy |
getRejectionHandlingStrategy() |
List<String> |
getSchemaLocations() |
AuditStrategy<AuditDatasetType> |
getServerAuditStrategy()
Returns server-side audit strategy instance.
|
String |
getServiceAddress()
Returns the address of the service.
|
AbstractWebService |
getServiceInstance()
Constructs and returns a transaction-specific service class instance
for the given endpoint.
|
String |
getServiceUrl()
Returns the URL of the service.
|
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
String |
getUsername() |
boolean |
isAddressing() |
boolean |
isAudit() |
boolean |
isMtom() |
boolean |
isSecure() |
boolean |
isSingleton() |
boolean |
isSwaOutSupport() |
void |
setAudit(boolean audit) |
void |
setAuditContext(AuditContext auditContext) |
void |
setCorrelator(AsynchronyCorrelator<AuditDatasetType> correlator)
Configures the asynchrony correlator for this endpoint.
|
void |
setHomeCommunityId(String homeCommunityId)
Configures homeCommunityId for this endpoint.
|
void |
setHomeCommunityId(URN urn)
Configures homeCommunityId for this endpoint.
|
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier) |
void |
setPassword(String password) |
void |
setRejectionHandlingStrategy(WsRejectionHandlingStrategy rejectionHandlingStrategy) |
void |
setSecure(boolean secure) |
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters) |
void |
setUsername(String username) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final String WSA_REPLYTO_HEADER_NAME
public static final String CORRELATION_KEY_HEADER_NAME
public static final String INCOMING_HTTP_HEADERS
Map<String, String>
.public static final String OUTGOING_HTTP_HEADERS
Map<String, String>
.public static final String INCOMING_SOAP_HEADERS
Map<QName
, Header
>
.protected AbstractWsEndpoint(String endpointUri, String address, AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId<ConfigType>> component, Map<String,Object> parameters, Class<? extends AbstractWebService> serviceClass)
protected AbstractWsEndpoint(String endpointUri, String address, AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId<ConfigType>> component, AuditContext auditContext, org.apache.cxf.interceptor.InterceptorProvider customInterceptors, List<org.apache.cxf.feature.AbstractFeature> features, List<String> schemaLocations, Map<String,Object> properties, Class<? extends AbstractWebService> serviceClass)
endpointUri
- the URI of the endpoint.address
- the endpoint address from the URI.component
- the component creating this endpoint.auditContext
- the audit contextcustomInterceptors
- user-defined set of additional CXF interceptors.features
- user-defined list of CXF features.public AbstractWebService getServiceInstance()
protected AbstractWebService getCustomServiceInstance(AbstractWsEndpoint<AuditDatasetType,ConfigType> endpoint)
Class.newInstance()
is not sufficient.endpoint
- this endpoint as paramaterpublic AuditStrategy<AuditDatasetType> getClientAuditStrategy()
AuditableEndpoint
getClientAuditStrategy
in interface AuditableEndpoint<AuditDatasetType extends WsAuditDataset>
public AuditStrategy<AuditDatasetType> getServerAuditStrategy()
AuditableEndpoint
getServerAuditStrategy
in interface AuditableEndpoint<AuditDatasetType extends WsAuditDataset>
@ManagedAttribute public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
public String getServiceUrl()
@ManagedAttribute(description="Service Address") public String getServiceAddress()
@ManagedAttribute(description="Audit Enabled") public boolean isAudit()
isAudit
in interface AuditableEndpoint<AuditDatasetType extends WsAuditDataset>
true
if auditing is turned on. true
by default.public void setAudit(boolean audit)
audit
- true
if auditing shall be turned on.public AuditContext getAuditContext()
getAuditContext
in interface AuditableEndpoint<AuditDatasetType extends WsAuditDataset>
public void setAuditContext(AuditContext auditContext)
@ManagedAttribute(description="Security Enabled") public boolean isSecure()
true
if https should be used instead of http. Defaults
to false
.public void setSecure(boolean secure)
secure
- true
if https should be used instead of http.public String getUsername()
@ManagedAttribute(description="Basic Authentication Username") public void setUsername(String username)
@ManagedAttribute(description="Basic Authentication Password") public String getPassword()
public void setPassword(String password)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
public void setCorrelator(AsynchronyCorrelator<AuditDatasetType> correlator)
public AsynchronyCorrelator<AuditDatasetType> getCorrelator()
public org.apache.cxf.interceptor.InterceptorProvider getCustomInterceptors()
@ManagedAttribute(description="HomeCommunityId") public String getHomeCommunityId()
public void setHomeCommunityId(String homeCommunityId)
homeCommunityId
- homeCommunityId in format "urn:oid:1.2.3.4.5".public void setHomeCommunityId(URN urn)
urn
- homeCommunityId in format "urn:oid:1.2.3.4.5".public WsRejectionHandlingStrategy getRejectionHandlingStrategy()
public void setRejectionHandlingStrategy(WsRejectionHandlingStrategy rejectionHandlingStrategy)
rejectionHandlingStrategy
- a rejection handling strategy instance.public List<org.apache.cxf.feature.AbstractFeature> getFeatures()
public List<String> getSchemaLocations()
public Map<String,Object> getProperties()
public AbstractWsComponent<AuditDatasetType,ConfigType,? extends WsInteractionId> getComponent()
getComponent
in class org.apache.camel.impl.DefaultEndpoint
public abstract JaxWsClientFactory<AuditDatasetType> getJaxWsClientFactory()
public abstract JaxWsServiceFactory<AuditDatasetType> getJaxWsServiceFactory()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws org.apache.cxf.common.i18n.Exception
createConsumer
in interface org.apache.camel.Endpoint
org.apache.cxf.common.i18n.Exception
public org.apache.camel.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
Exception
public abstract AbstractWsProducer<AuditDatasetType,ConfigType,?,?> getProducer(AbstractWsEndpoint<AuditDatasetType,ConfigType> endpoint, JaxWsClientFactory<AuditDatasetType> clientFactory)
clientFactory
- JAX-WS client factory instance.@ManagedAttribute(description="Addressing Enabled") public boolean isAddressing()
true
if WS-Addressing enabled.@ManagedAttribute(description="Mtom Enabled") public boolean isMtom()
true
if MTOM enabled.@ManagedAttribute(description="SOAP With Attachments Output Enabled") public boolean isSwaOutSupport()
true
if SOAP With Attachments Output enabled.Copyright © 2018 Open eHealth Foundation. All rights reserved.