org.springframework.ws.soap.server.endpoint.adapter.method
Class SoapHeaderElementMethodArgumentResolver
java.lang.Object
org.springframework.ws.soap.server.endpoint.adapter.method.SoapHeaderElementMethodArgumentResolver
- All Implemented Interfaces:
- MethodArgumentResolver
public class SoapHeaderElementMethodArgumentResolver
- extends Object
- implements MethodArgumentResolver
Implementation of MethodArgumentResolver
that supports resolving SoapHeaderElement
parameters. Target
method parameters must be annotated with SoapHeader
to indicate the SOAP header to resolve. This resolver
supports simple SoapHeaderElement
parameters and List
parameters for elements that appear multiple
times in the same SOAP header.
The following snippet shows an example of supported declarations.
public void soapHeaderElement(@SoapHeader("{http://springframework.org/ws}header") SoapHeaderElement element)
public void soapHeaderElementList(@SoapHeader("{http://springframework.org/ws}header") List
elements)
- Since:
- 2.0
- Author:
- Tareq Abedrabbo, Arjen Poutsma
- See Also:
SoapHeader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoapHeaderElementMethodArgumentResolver
public SoapHeaderElementMethodArgumentResolver()
supportsParameter
public boolean supportsParameter(MethodParameter parameter)
- Description copied from interface:
MethodArgumentResolver
- Indicates whether the given method parameter is supported by this resolver.
- Specified by:
supportsParameter
in interface MethodArgumentResolver
- Parameters:
parameter
- the method parameter to check
- Returns:
true
if this resolver supports the supplied parameter; false
otherwise
resolveArgument
public Object resolveArgument(MessageContext messageContext,
MethodParameter parameter)
throws Exception
- Description copied from interface:
MethodArgumentResolver
- Resolves the given parameter into a method argument.
- Specified by:
resolveArgument
in interface MethodArgumentResolver
- Parameters:
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
.
- Returns:
- the resolved argument. May be
null
.
- Throws:
Exception
- in case of errors
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.