public class AnnotationActionEndpointMapping extends AbstractActionMethodEndpointMapping implements org.springframework.beans.factory.config.BeanPostProcessor
EndpointMapping
interface that uses the
@Action
annotation to map methods to a WS-Addressing Action
header.
Endpoints typically have the following form:
@Endpoint @Address("mailto:[email protected]") public class MyEndpoint{ @Action("http://fabrikam123.example/mail/Delete") public Source doSomethingWithRequest() { ... } }
If set, the @Address
annotation on the endpoint class should be equal to the destination
property of the
incoming message.
DEFAULT_FAULT_ACTION_SUFFIX, DEFAULT_OUTPUT_ACTION_SUFFIX
logger
Constructor and Description |
---|
AnnotationActionEndpointMapping() |
Modifier and Type | Method and Description |
---|---|
protected URI |
getActionForMethod(Method method)
Returns the action value for the specified method.
|
protected URI |
getEndpointAddress(Object endpoint)
Returns the address property of the given
MethodEndpoint , by looking for the Address annotation. |
protected Class<? extends Annotation> |
getEndpointAnnotationType()
Returns the 'endpoint' annotation type.
|
protected URI |
getFaultAction(Object endpoint,
MessageAddressingProperties map)
Provides the WS-Addressing Action for response fault messages, given the endpoint, and request Message Addressing
Properties.
|
protected URI |
getResponseAction(Object endpoint,
MessageAddressingProperties map)
Provides the WS-Addressing Action for response messages, given the endpoint, and request Message Addressing
Properties.
|
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
getEndpointClass, registerMethods
getEndpointInternal, getFaultActionSuffix, getOutputActionSuffix, lookupEndpoint, registerEndpoint, setFaultActionSuffix, setOutputActionSuffix
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
protected Class<? extends Annotation> getEndpointAnnotationType()
Endpoint
.protected URI getActionForMethod(Method method)
Action
annotation
value.getActionForMethod
in class AbstractActionMethodEndpointMapping
protected URI getEndpointAddress(Object endpoint)
MethodEndpoint
, by looking for the Address
annotation.
The value of this property should match the destination
of incoming messages. Returns null
if the anotation is not present, thus ignoring the
destination property.getEndpointAddress
in class AbstractActionEndpointMapping
endpoint
- the method endpoint to return the address fornull
to ignore the destination propertyprotected URI getResponseAction(Object endpoint, MessageAddressingProperties map)
AbstractAddressingEndpointMapping
getResponseAction
in class AbstractActionEndpointMapping
endpoint
- the mapped endpointmap
- the MAP for the requestprotected URI getFaultAction(Object endpoint, MessageAddressingProperties map)
AbstractAddressingEndpointMapping
getFaultAction
in class AbstractActionEndpointMapping
endpoint
- the mapped endpointmap
- the MAP for the requestpublic final Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public final Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException