public class JDomPayloadMethodProcessor extends AbstractPayloadSourceMethodProcessor
MethodArgumentResolver and MethodReturnValueHandler that supports JDOM elements.logger| Constructor and Description |
|---|
JDomPayloadMethodProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected Source |
createResponsePayload(org.springframework.core.MethodParameter returnType,
Object returnValue)
Creates a response payload for the given return value.
|
protected org.jdom2.Element |
resolveRequestPayloadArgument(org.springframework.core.MethodParameter parameter,
Source requestPayload)
Resolves the given parameter, annotated with
RequestPayload, into a method argument. |
protected boolean |
supportsRequestPayloadParameter(org.springframework.core.MethodParameter parameter)
Indicates whether the given method parameter, annotated with
RequestPayload,
is supported by this resolver. |
protected boolean |
supportsResponsePayloadReturnType(org.springframework.core.MethodParameter returnType)
Indicates whether the given method return type, annotated with
ResponsePayload, is supported. |
handleReturnValue, resolveArgumentconvertToByteArrayInputStream, supportsParameter, supportsReturnTypecreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformprotected boolean supportsRequestPayloadParameter(org.springframework.core.MethodParameter parameter)
AbstractPayloadMethodProcessorRequestPayload,
is supported by this resolver.supportsRequestPayloadParameter in class AbstractPayloadMethodProcessorparameter - the method parameter to checktrue if this resolver supports the supplied parameter; false otherwiseprotected org.jdom2.Element resolveRequestPayloadArgument(org.springframework.core.MethodParameter parameter,
Source requestPayload)
throws Exception
AbstractPayloadSourceMethodProcessorRequestPayload, into a method argument.resolveRequestPayloadArgument in class AbstractPayloadSourceMethodProcessorparameter - the parameter to resolve to an argumentrequestPayload - the request payloadnull.Exception - in case of errorsprotected boolean supportsResponsePayloadReturnType(org.springframework.core.MethodParameter returnType)
AbstractPayloadMethodProcessorResponsePayload, is supported.supportsResponsePayloadReturnType in class AbstractPayloadMethodProcessorreturnType - the method parameter to checktrue if this resolver supports the supplied return type; false otherwiseprotected Source createResponsePayload(org.springframework.core.MethodParameter returnType, Object returnValue)
AbstractPayloadSourceMethodProcessorcreateResponsePayload in class AbstractPayloadSourceMethodProcessorreturnType - the return type to handlereturnValue - the return value to handle