public class FiberServletInvocableHandlerMethod extends FiberInvocableHandlerMethod
Extends InvocableHandlerMethod with the ability to handle return values through a registered HandlerMethodReturnValueHandler and also supports setting the response status based on a method-level @ResponseStatus annotation.
A null return value (including void) may be interpreted as the end of request processing in combination with a @ResponseStatus annotation, a not-modified check condition (see ServletWebRequest.checkNotModified(long)), or a method argument that provides access to the response stream.
HandlerMethod.HandlerMethodParameterlogger| Constructor and Description |
|---|
FiberServletInvocableHandlerMethod(HandlerMethod handlerMethod)
Create an instance from a
HandlerMethod. |
FiberServletInvocableHandlerMethod(Object handler,
Method method)
Creates an instance from the given handler and method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invokeAndHandle(ServletWebRequest webRequest,
ModelAndViewContainer mavContainer,
Object... providedArgs)
Invokes the method and handles the return value through a registered
HandlerMethodReturnValueHandler. |
void |
setHandlerMethodReturnValueHandlers(HandlerMethodReturnValueHandlerComposite returnValueHandlers)
Register
HandlerMethodReturnValueHandler instances to use to handle return values. |
doInvoke, fiberDispatchInvoke, threadBlockingInvokegetDetailedErrorMessage, invokeForRequest, setDataBinderFactory, setHandlerMethodArgumentResolvers, setParameterNameDiscoverercreateWithResolvedBean, equals, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getResolvedFromHandlerMethod, getReturnType, getReturnValueType, hashCode, isVoid, toStringpublic FiberServletInvocableHandlerMethod(Object handler, Method method)
Creates an instance from the given handler and method.
public FiberServletInvocableHandlerMethod(HandlerMethod handlerMethod)
Create an instance from a HandlerMethod.
public void setHandlerMethodReturnValueHandlers(HandlerMethodReturnValueHandlerComposite returnValueHandlers)
Register HandlerMethodReturnValueHandler instances to use to handle return values.
public final void invokeAndHandle(ServletWebRequest webRequest, ModelAndViewContainer mavContainer, Object... providedArgs) throws Exception
Invokes the method and handles the return value through a registered HandlerMethodReturnValueHandler.
webRequest - the current requestmavContainer - the ModelAndViewContainer for this requestprovidedArgs - “given” arguments matched by type, not resolvedException