DefaultMethodEndpointAdapter and XPathParamMethodArgumentResolver.@Deprecated public class XPathParamAnnotationMethodEndpointAdapter extends AbstractMethodEndpointAdapter implements InitializingBean
void handleMyMessage(@XPathParam("/root/child/text")String param);
or
Source handleMyMessage(@XPathParam("/root/child/text")String param1, @XPathParam("/root/child/number")double
param2);
I.e. methods that return either void or a Source, and have parameters annotated with XPathParam that specify the XPath expression that should be bound to that parameter. The parameter can be of the
following types: logger| Constructor and Description |
|---|
XPathParamAnnotationMethodEndpointAdapter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
protected void |
invokeInternal(MessageContext messageContext,
MethodEndpoint methodEndpoint)
Deprecated.
Use the given method endpoint to handle the request.
|
void |
setNamespaces(Map<String,String> namespaces)
Deprecated.
Sets namespaces used in the XPath expression.
|
protected boolean |
supportsInternal(MethodEndpoint methodEndpoint)
Deprecated.
Supports methods with @XPathParam parameters, and return either
Source or nothing. |
invoke, supportscreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic XPathParamAnnotationMethodEndpointAdapter()
public void setNamespaces(Map<String,String> namespaces)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected boolean supportsInternal(MethodEndpoint methodEndpoint)
Source or nothing.supportsInternal in class AbstractMethodEndpointAdaptermethodEndpoint - method endpoint to checkprotected void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception
AbstractMethodEndpointAdapterinvokeInternal in class AbstractMethodEndpointAdaptermessageContext - the current message contextmethodEndpoint - the method endpoint to useException - in case of errors