Class HandlerMethodInvoker
- java.lang.Object
- org.springframework.web.bind.annotation.support.HandlerMethodInvoker
@Deprecated public class HandlerMethodInvoker extends Object
Deprecated.as of 4.3, in favor of theHandlerMethod
-based MVC infrastructureSupport class for invoking an annotated handler method. Operates on the introspection results of aHandlerMethodResolver
for a specific handler type.Used by
AnnotationMethodHandlerAdapter
andAnnotationMethodHandlerAdapter
.- Since:
- 2.5.2
- Author:
- Juergen Hoeller, Arjen Poutsma
- See Also:
invokeHandlerMethod(java.lang.reflect.Method, java.lang.Object, org.springframework.web.context.request.NativeWebRequest, org.springframework.ui.ExtendedModelMap)
Constructor Summary
Constructors Constructor Description HandlerMethodInvoker(HandlerMethodResolver methodResolver)
Deprecated.HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer)
Deprecated.HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter<?>[] messageConverters)
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)
Deprecated.protected WebDataBinder
createBinder(NativeWebRequest webRequest, Object target, String objectName)
Deprecated.protected HttpInputMessage
createHttpInputMessage(NativeWebRequest webRequest)
Deprecated.Return aHttpInputMessage
for the givenNativeWebRequest
.protected HttpOutputMessage
createHttpOutputMessage(NativeWebRequest webRequest)
Deprecated.Return aHttpOutputMessage
for the givenNativeWebRequest
.protected void
doBind(WebDataBinder binder, NativeWebRequest webRequest)
Deprecated.protected void
initBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest)
Deprecated.Object
invokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel)
Deprecated.protected boolean
isBindingCandidate(Object value)
Deprecated.Determine whether the given value qualifies as a "binding candidate", i.e.protected String
parseDefaultValueAttribute(String value)
Deprecated.protected void
raiseMissingCookieException(String cookieName, Class<?> paramType)
Deprecated.protected void
raiseMissingHeaderException(String headerName, Class<?> paramType)
Deprecated.protected void
raiseMissingParameterException(String paramName, Class<?> paramType)
Deprecated.protected void
raiseSessionRequiredException(String message)
Deprecated.protected Object
resolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest)
Deprecated.protected Object
resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest)
Deprecated.Resolves the given@CookieValue
annotation.protected Object
resolveDefaultValue(String value)
Deprecated.protected String
resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest)
Deprecated.Resolves the given@PathVariable
annotation.protected Object
resolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler)
Deprecated.Resolves the given@RequestBody
annotation.protected Object
resolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest)
Deprecated.void
updateModelAttributes(Object handler, Map<String,Object> mavModel, ExtendedModelMap implicitModel, NativeWebRequest webRequest)
Deprecated.
Constructor Detail
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver)
Deprecated.
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer)
Deprecated.
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter<?>[] messageConverters)
Deprecated.
Method Detail
invokeHandlerMethod
public final Object invokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel) throws Exception
Deprecated.- Throws:
Exception
updateModelAttributes
public final void updateModelAttributes(Object handler, Map<String,Object> mavModel, ExtendedModelMap implicitModel, NativeWebRequest webRequest) throws Exception
Deprecated.- Throws:
Exception
initBinder
protected void initBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest) throws Exception
Deprecated.- Throws:
Exception
resolveRequestBody
protected Object resolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler) throws Exception
Deprecated.Resolves the given@RequestBody
annotation.- Throws:
Exception
resolveCookieValue
protected Object resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
Deprecated.Resolves the given@CookieValue
annotation.Throws an UnsupportedOperationException by default.
- Throws:
Exception
resolvePathVariable
protected String resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
Deprecated.Resolves the given@PathVariable
annotation.Throws an UnsupportedOperationException by default.
- Throws:
Exception
isBindingCandidate
protected boolean isBindingCandidate(Object value)
Deprecated.Determine whether the given value qualifies as a "binding candidate", i.e. might potentially be subject to bean-style data binding later on.
raiseMissingParameterException
protected void raiseMissingParameterException(String paramName, Class<?> paramType) throws Exception
Deprecated.- Throws:
Exception
raiseMissingHeaderException
protected void raiseMissingHeaderException(String headerName, Class<?> paramType) throws Exception
Deprecated.- Throws:
Exception
raiseMissingCookieException
protected void raiseMissingCookieException(String cookieName, Class<?> paramType) throws Exception
Deprecated.- Throws:
Exception
raiseSessionRequiredException
protected void raiseSessionRequiredException(String message) throws Exception
Deprecated.- Throws:
Exception
createBinder
protected WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName) throws Exception
Deprecated.- Throws:
Exception
doBind
protected void doBind(WebDataBinder binder, NativeWebRequest webRequest) throws Exception
Deprecated.- Throws:
Exception
createHttpInputMessage
protected HttpInputMessage createHttpInputMessage(NativeWebRequest webRequest) throws Exception
Deprecated.Return aHttpInputMessage
for the givenNativeWebRequest
.Throws an UnsupportedOperation1Exception by default.
- Throws:
Exception
createHttpOutputMessage
protected HttpOutputMessage createHttpOutputMessage(NativeWebRequest webRequest) throws Exception
Deprecated.Return aHttpOutputMessage
for the givenNativeWebRequest
.Throws an UnsupportedOperationException by default.
- Throws:
Exception
parseDefaultValueAttribute
protected String parseDefaultValueAttribute(String value)
Deprecated.
resolveDefaultValue
protected Object resolveDefaultValue(String value)
Deprecated.
resolveCommonArgument
protected Object resolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest) throws Exception
Deprecated.- Throws:
Exception
resolveStandardArgument
protected Object resolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest) throws Exception
Deprecated.- Throws:
Exception
addReturnValueAsModelAttribute
protected final void addReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)
Deprecated.