open class ServletInvocableHandlerMethod : InvocableHandlerMethod
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.
Author
Rossen Stoyanchev
Author
Juergen Hoeller
Since
3.1
ServletInvocableHandlerMethod(handler: Any, method: Method)
Creates an instance from the given handler and method. ServletInvocableHandlerMethod(handlerMethod: HandlerMethod)
Create an instance from a |
open fun invokeAndHandle(webRequest: ServletWebRequest, mavContainer: ModelAndViewContainer, vararg providedArgs: Any): Unit
Invoke the method and handle the return value through one of the configured HandlerMethodReturnValueHandlers. |
|
open fun setHandlerMethodReturnValueHandlers(returnValueHandlers: HandlerMethodReturnValueHandlerComposite): Unit
Register HandlerMethodReturnValueHandler instances to use to handle return values. |
open fun invokeForRequest(request: NativeWebRequest, mavContainer: ModelAndViewContainer, vararg providedArgs: Any): Any
Invoke the method after resolving its argument values in the context of the given request. Argument values are commonly resolved through HandlerMethodArgumentResolvers. The |
|
open fun setDataBinderFactory(dataBinderFactory: WebDataBinderFactory): Unit
Set the WebDataBinderFactory to be passed to argument resolvers allowing them to create a WebDataBinder for data binding and type conversion purposes. |
|
open fun setHandlerMethodArgumentResolvers(argumentResolvers: HandlerMethodArgumentResolverComposite): Unit
Set HandlerMethodArgumentResolvers to use to use for resolving method argument values. |
|
open fun setParameterNameDiscoverer(parameterNameDiscoverer: ParameterNameDiscoverer): Unit
Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name). Default is a org.springframework.core.DefaultParameterNameDiscoverer. |