Class XPathParamAnnotationMethodEndpointAdapter
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
org.springframework.ws.server.endpoint.adapter.XPathParamAnnotationMethodEndpointAdapter
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,EndpointAdapter
@Deprecated
public class XPathParamAnnotationMethodEndpointAdapter
extends AbstractMethodEndpointAdapter
implements org.springframework.beans.factory.InitializingBean
Deprecated.
Adapter that supports endpoint methods that use XPath expressions. Supports methods with the following signature:
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:
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 eitherSource
or nothing.Methods inherited from class org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
invoke, supports
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
XPathParamAnnotationMethodEndpointAdapter
public XPathParamAnnotationMethodEndpointAdapter()Deprecated.
-
-
Method Details
-
setNamespaces
Deprecated.Sets namespaces used in the XPath expression. Maps prefixes to namespaces. -
afterPropertiesSet
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
supportsInternal
Deprecated.Supports methods with @XPathParam parameters, and return eitherSource
or nothing.- Specified by:
supportsInternal
in classAbstractMethodEndpointAdapter
- Parameters:
methodEndpoint
- method endpoint to check- Returns:
- whether or not this adapter can adapt the given method
-
invokeInternal
protected void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception Deprecated.Description copied from class:AbstractMethodEndpointAdapter
Use the given method endpoint to handle the request.- Specified by:
invokeInternal
in classAbstractMethodEndpointAdapter
- Parameters:
messageContext
- the current message contextmethodEndpoint
- the method endpoint to use- Throws:
Exception
- in case of errors
-
DefaultMethodEndpointAdapter
andXPathParamMethodArgumentResolver
.