public class DomPayloadMethodProcessor extends AbstractPayloadSourceMethodProcessor
MethodArgumentResolver
and MethodReturnValueHandler
that supports W3C DOM elements.logger
Constructor and Description |
---|
DomPayloadMethodProcessor() |
Modifier and Type | Method and Description |
---|---|
protected DOMSource |
createResponsePayload(org.springframework.core.MethodParameter returnType,
Object returnValue)
Creates a response payload for the given return value.
|
protected Node |
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, resolveArgument
convertToByteArrayInputStream, supportsParameter, supportsReturnType
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
protected boolean supportsRequestPayloadParameter(org.springframework.core.MethodParameter parameter)
AbstractPayloadMethodProcessor
RequestPayload
,
is supported by this resolver.supportsRequestPayloadParameter
in class AbstractPayloadMethodProcessor
parameter
- the method parameter to checktrue
if this resolver supports the supplied parameter; false
otherwiseprotected Node resolveRequestPayloadArgument(org.springframework.core.MethodParameter parameter, Source requestPayload) throws Exception
AbstractPayloadSourceMethodProcessor
RequestPayload
, into a method argument.resolveRequestPayloadArgument
in class AbstractPayloadSourceMethodProcessor
parameter
- the parameter to resolve to an argumentrequestPayload
- the request payloadnull
.Exception
- in case of errorsprotected boolean supportsResponsePayloadReturnType(org.springframework.core.MethodParameter returnType)
AbstractPayloadMethodProcessor
ResponsePayload
, is supported.supportsResponsePayloadReturnType
in class AbstractPayloadMethodProcessor
returnType
- the method parameter to checktrue
if this resolver supports the supplied return type; false
otherwiseprotected DOMSource createResponsePayload(org.springframework.core.MethodParameter returnType, Object returnValue)
AbstractPayloadSourceMethodProcessor
createResponsePayload
in class AbstractPayloadSourceMethodProcessor
returnType
- the return type to handlereturnValue
- the return value to handleCopyright © 2018 Pivotal Software. All rights reserved.