public abstract class AbstractActionEndpointMapping extends AbstractAddressingEndpointMapping
Action
-mapped EndpointMapping
implementations. Provides infrastructure for mapping endpoints to actions.
By default, this mapping creates a Action
for reply messages based on the request message, plus the
extra suffix
, and a * By default, this mapping creates a Action
for reply messages based on the request message, plus the extra suffix
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FAULT_ACTION_SUFFIX
The defaults suffix to add to response
Action for reply messages. |
static String |
DEFAULT_OUTPUT_ACTION_SUFFIX
The defaults suffix to add to the request
Action for reply messages. |
logger
Constructor and Description |
---|
AbstractActionEndpointMapping() |
Modifier and Type | Method and Description |
---|---|
protected abstract URI |
getEndpointAddress(Object endpoint)
Returns the address property of the given endpoint.
|
protected Object |
getEndpointInternal(MessageAddressingProperties map)
Lookup an endpoint for the given
MessageAddressingProperties , returning null if no specific
one is found. |
protected URI |
getFaultAction(Object endpoint,
MessageAddressingProperties requestMap)
Provides the WS-Addressing Action for response fault messages, given the endpoint, and request Message Addressing
Properties.
|
String |
getFaultActionSuffix()
Returns the suffix to add to request
Action s for reply fault messages. |
String |
getOutputActionSuffix()
Returns the suffix to add to request
Action s for reply messages. |
protected URI |
getResponseAction(Object endpoint,
MessageAddressingProperties requestMap)
Provides the WS-Addressing Action for response messages, given the endpoint, and request Message Addressing
Properties.
|
protected Object |
lookupEndpoint(URI action)
Looks up an endpoint instance for the given action.
|
protected void |
registerEndpoint(URI action,
Object endpoint)
Register the specified endpoint for the given action URI.
|
void |
setFaultActionSuffix(String faultActionSuffix)
Sets the suffix to add to request
Action s for reply fault messages. |
void |
setOutputActionSuffix(String outputActionSuffix)
Sets the suffix to add to request
Action s for reply messages. |
afterPropertiesSet, getApplicationContext, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setApplicationContext, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersions
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public static final String DEFAULT_OUTPUT_ACTION_SUFFIX
Action
for reply messages.public static final String DEFAULT_FAULT_ACTION_SUFFIX
Action
for reply messages.public String getOutputActionSuffix()
Action
s for reply messages.public void setOutputActionSuffix(String outputActionSuffix)
Action
s for reply messages.DEFAULT_OUTPUT_ACTION_SUFFIX
public String getFaultActionSuffix()
Action
s for reply fault messages.public void setFaultActionSuffix(String faultActionSuffix)
Action
s for reply fault messages.DEFAULT_FAULT_ACTION_SUFFIX
protected final Object getEndpointInternal(MessageAddressingProperties map)
AbstractAddressingEndpointMapping
MessageAddressingProperties
, returning null
if no specific
one is found. This template method is called by AbstractAddressingEndpointMapping.getEndpoint(MessageContext)
.getEndpointInternal
in class AbstractAddressingEndpointMapping
map
- the message addressing propertiesnull
protected abstract URI getEndpointAddress(Object endpoint)
destination
of incoming messages. May return null
to ignore
the destination.endpoint
- the endpoint to return the address fornull
to ignore the destination propertyprotected Object lookupEndpoint(URI action)
action
- the action URInull
if not foundprotected void registerEndpoint(URI action, Object endpoint) throws org.springframework.beans.BeansException, IllegalStateException
action
- the action the bean should be mapped toendpoint
- the endpoint instance or endpoint bean name String (a bean name will automatically be resolved
into the corresponding endpoint bean)org.springframework.beans.BeansException
- if the endpoint couldn't be registeredIllegalStateException
- if there is a conflicting endpoint registeredprotected URI getResponseAction(Object endpoint, MessageAddressingProperties requestMap)
AbstractAddressingEndpointMapping
getResponseAction
in class AbstractAddressingEndpointMapping
endpoint
- the mapped endpointrequestMap
- the MAP for the requestprotected URI getFaultAction(Object endpoint, MessageAddressingProperties requestMap)
AbstractAddressingEndpointMapping
getFaultAction
in class AbstractAddressingEndpointMapping
endpoint
- the mapped endpointrequestMap
- the MAP for the requestCopyright © 2018 Pivotal Software. All rights reserved.