public class AnnotationActionEndpointMapping extends AbstractActionMethodEndpointMapping implements 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_SUFFIXloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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, registerMethodsgetEndpointInternal, getFaultActionSuffix, getOutputActionSuffix, lookupEndpoint, registerEndpoint, setFaultActionSuffix, setOutputActionSuffixafterPropertiesSet, getApplicationContext, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setApplicationContext, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersionscreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformprotected Class<? extends Annotation> getEndpointAnnotationType()
Endpoint.protected URI getActionForMethod(Method method)
Action annotation
value.getActionForMethod in class AbstractActionMethodEndpointMappingprotected 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 AbstractActionEndpointMappingendpoint - the method endpoint to return the address fornull to ignore the destination propertyprotected URI getResponseAction(Object endpoint, MessageAddressingProperties map)
AbstractAddressingEndpointMappinggetResponseAction in class AbstractActionEndpointMappingendpoint - the mapped endpointmap - the MAP for the requestprotected URI getFaultAction(Object endpoint, MessageAddressingProperties map)
AbstractAddressingEndpointMappinggetFaultAction in class AbstractActionEndpointMappingendpoint - the mapped endpointmap - the MAP for the requestpublic final Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
postProcessBeforeInitialization in interface BeanPostProcessorBeansExceptionpublic final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorBeansException