public class PortletResponseMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
PortletResponse
OutputStream
Writer
Constructor and Description |
---|
PortletResponseMethodArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Set
ModelAndViewContainer.setRequestHandled(boolean) to false to indicate that the method
signature provides access to the response. |
boolean |
supportsParameter(MethodParameter parameter) |
public PortletResponseMethodArgumentResolver()
public Object resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) throws Exception
ModelAndViewContainer.setRequestHandled(boolean)
to false
to indicate that the method
signature provides access to the response. If subsequently the underlying method returns null
, the
request is considered directly handled.resolveArgument
in interface HandlerMethodArgumentResolver
Exception
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
Copyright © 2019 Liferay, Inc.. All rights reserved.