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 aHandlerMethodResolverfor a specific handler type.Used by
AnnotationMethodHandlerAdapterandAnnotationMethodHandlerAdapter.- 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 voidaddReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)Deprecated.protected WebDataBindercreateBinder(NativeWebRequest webRequest, Object target, String objectName)Deprecated.protected HttpInputMessagecreateHttpInputMessage(NativeWebRequest webRequest)Deprecated.Return aHttpInputMessagefor the givenNativeWebRequest.protected HttpOutputMessagecreateHttpOutputMessage(NativeWebRequest webRequest)Deprecated.Return aHttpOutputMessagefor the givenNativeWebRequest.protected voiddoBind(WebDataBinder binder, NativeWebRequest webRequest)Deprecated.protected voidinitBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest)Deprecated.ObjectinvokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel)Deprecated.protected booleanisBindingCandidate(Object value)Deprecated.Determine whether the given value qualifies as a "binding candidate", i.e.protected StringparseDefaultValueAttribute(String value)Deprecated.protected voidraiseMissingCookieException(String cookieName, Class<?> paramType)Deprecated.protected voidraiseMissingHeaderException(String headerName, Class<?> paramType)Deprecated.protected voidraiseMissingParameterException(String paramName, Class<?> paramType)Deprecated.protected voidraiseSessionRequiredException(String message)Deprecated.protected ObjectresolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest)Deprecated.protected ObjectresolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest)Deprecated.Resolves the given@CookieValueannotation.protected ObjectresolveDefaultValue(String value)Deprecated.protected StringresolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest)Deprecated.Resolves the given@PathVariableannotation.protected ObjectresolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler)Deprecated.Resolves the given@RequestBodyannotation.protected ObjectresolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest)Deprecated.voidupdateModelAttributes(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@RequestBodyannotation.- Throws:
 Exception
resolveCookieValue
protected Object resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
Deprecated.Resolves the given@CookieValueannotation.Throws an UnsupportedOperationException by default.
- Throws:
 Exception
resolvePathVariable
protected String resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
Deprecated.Resolves the given@PathVariableannotation.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 aHttpInputMessagefor the givenNativeWebRequest.Throws an UnsupportedOperation1Exception by default.
- Throws:
 Exception
createHttpOutputMessage
protected HttpOutputMessage createHttpOutputMessage(NativeWebRequest webRequest) throws Exception
Deprecated.Return aHttpOutputMessagefor 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.