|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.server.endpoint.adapter.method.XPathParamMethodArgumentResolver
public class XPathParamMethodArgumentResolver
Implementation of MethodArgumentResolver
that supports the @XPathParam
annotation.
@XPathParam
that specifies the XPath expression
that should be bound to that parameter. The parameter can either a "natively supported" XPath type (boolean
, double
, String
, Node
, or NodeList
), or a type that is supported by the ConversionService
.
Constructor Summary | |
---|---|
XPathParamMethodArgumentResolver()
|
Method Summary | |
---|---|
protected XPathFactory |
createXPathFactory()
Create a XPathFactory that this resolver will use to create XPath objects. |
Object |
resolveArgument(MessageContext messageContext,
MethodParameter parameter)
Resolves the given parameter into a method argument. |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService)
Sets the conversion service to use. |
void |
setTransformerHelper(TransformerHelper transformerHelper)
|
boolean |
supportsParameter(MethodParameter parameter)
Indicates whether the given method parameter is supported by this resolver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathParamMethodArgumentResolver()
Method Detail |
---|
public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
public void setTransformerHelper(TransformerHelper transformerHelper)
public boolean supportsParameter(MethodParameter parameter)
MethodArgumentResolver
supportsParameter
in interface MethodArgumentResolver
parameter
- the method parameter to check
true
if this resolver supports the supplied parameter; false
otherwisepublic Object resolveArgument(MessageContext messageContext, MethodParameter parameter) throws TransformerException, XPathExpressionException
MethodArgumentResolver
resolveArgument
in interface MethodArgumentResolver
messageContext
- the current message contextparameter
- the parameter to resolve to an argument. This parameter must have previously been passed to
the MethodArgumentResolver.supportsParameter(MethodParameter)
method of this interface, which must
have returned true
.
null
.
TransformerException
XPathExpressionException
protected XPathFactory createXPathFactory()
XPathFactory
that this resolver will use to create XPath
objects.
Can be overridden in subclasses, adding further initialization of the factory. The resulting factory is cached,
so this method will only be called once.
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |