public class RepresentationModelProcessorHandlerMethodReturnValueHandler extends Object implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
HandlerMethodReturnValueHandler
to post-process the objects returned from controller methods using the
configured RepresentationModelProcessor
s.Constructor and Description |
---|
RepresentationModelProcessorHandlerMethodReturnValueHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest) |
void |
setRootLinksAsHeaders(boolean rootLinksAsHeaders) |
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
public RepresentationModelProcessorHandlerMethodReturnValueHandler()
public void setRootLinksAsHeaders(boolean rootLinksAsHeaders)
rootLinksAsHeaders
- the rootLinksAsHeaders to setpublic boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
public void handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
handleReturnValue
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
Exception
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.