public class SourcePayloadMethodProcessor extends AbstractPayloadSourceMethodProcessor
logger| Constructor and Description |
|---|
SourcePayloadMethodProcessor() |
| 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 XMLInputFactory |
createXmlInputFactory()
Create a
XMLInputFactory that this resolver will use to create XMLStreamReader
and XMLEventReader objects. |
protected Source |
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 Source 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 handleprotected XMLInputFactory createXmlInputFactory()
XMLInputFactory that this resolver will use to create XMLStreamReader
and XMLEventReader 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.