org.springframework.ws.server.endpoint.adapter.method.dom
Class Dom4jPayloadMethodProcessor
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.adapter.method.AbstractPayloadMethodProcessor
org.springframework.ws.server.endpoint.adapter.method.AbstractPayloadSourceMethodProcessor
org.springframework.ws.server.endpoint.adapter.method.dom.Dom4jPayloadMethodProcessor
- All Implemented Interfaces:
- MethodArgumentResolver, MethodReturnValueHandler
public class Dom4jPayloadMethodProcessor
- extends AbstractPayloadSourceMethodProcessor
Implementation of MethodArgumentResolver
and MethodReturnValueHandler
that supports dom4j elements.
- Since:
- 2.0
- Author:
- Arjen Poutsma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dom4jPayloadMethodProcessor
public Dom4jPayloadMethodProcessor()
supportsRequestPayloadParameter
protected boolean supportsRequestPayloadParameter(MethodParameter parameter)
- Description copied from class:
AbstractPayloadMethodProcessor
- Indicates whether the given method parameter, annotated with
RequestPayload
,
is supported by this resolver.
- Specified by:
supportsRequestPayloadParameter
in class AbstractPayloadMethodProcessor
- Parameters:
parameter
- the method parameter to check
- Returns:
true
if this resolver supports the supplied parameter; false
otherwise
resolveRequestPayloadArgument
protected org.dom4j.Element resolveRequestPayloadArgument(MethodParameter parameter,
Source requestPayload)
throws TransformerException
- Description copied from class:
AbstractPayloadSourceMethodProcessor
- Resolves the given parameter, annotated with
RequestPayload
, into a method argument.
- Specified by:
resolveRequestPayloadArgument
in class AbstractPayloadSourceMethodProcessor
- Parameters:
parameter
- the parameter to resolve to an argumentrequestPayload
- the request payload
- Returns:
- the resolved argument. May be
null
.
- Throws:
TransformerException
supportsResponsePayloadReturnType
protected boolean supportsResponsePayloadReturnType(MethodParameter returnType)
- Description copied from class:
AbstractPayloadMethodProcessor
- Indicates whether the given method return type, annotated with
ResponsePayload
, is supported.
- Specified by:
supportsResponsePayloadReturnType
in class AbstractPayloadMethodProcessor
- Parameters:
returnType
- the method parameter to check
- Returns:
true
if this resolver supports the supplied return type; false
otherwise
createResponsePayload
protected Source createResponsePayload(MethodParameter returnType,
Object returnValue)
- Description copied from class:
AbstractPayloadSourceMethodProcessor
- Creates a response payload for the given return value.
- Specified by:
createResponsePayload
in class AbstractPayloadSourceMethodProcessor
- Parameters:
returnType
- the return type to handlereturnValue
- the return value to handle
- Returns:
- the response payload
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.