public class XmlRootElementPayloadMethodProcessor extends AbstractJaxb2PayloadMethodProcessor
MethodArgumentResolver and MethodReturnValueHandler that supports parameters annotated with @XmlRootElement or @XmlType, and return values annotated with @XmlRootElement.logger| Constructor and Description |
|---|
XmlRootElementPayloadMethodProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleReturnValueInternal(MessageContext messageContext,
org.springframework.core.MethodParameter returnType,
Object returnValue) |
Object |
resolveArgument(MessageContext messageContext,
org.springframework.core.MethodParameter parameter)
Resolves the given parameter 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. |
createMarshaller, createUnmarshaller, handleReturnValue, marshalToResponsePayload, unmarshalElementFromRequestPayload, unmarshalFromRequestPayloadconvertToByteArrayInputStream, supportsParameter, supportsReturnTypecreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic XmlRootElementPayloadMethodProcessor()
protected 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 otherwisepublic Object resolveArgument(MessageContext messageContext, org.springframework.core.MethodParameter parameter) throws JAXBException
MethodArgumentResolvermessageContext - 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.null.JAXBExceptionprotected 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 void handleReturnValueInternal(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) throws JAXBException
handleReturnValueInternal in class AbstractJaxb2PayloadMethodProcessorJAXBException