类 HandlerMethodInvoker
- java.lang.Object
- org.springframework.web.bind.annotation.support.HandlerMethodInvoker
@Deprecated public class HandlerMethodInvoker extends Object
已过时。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.- 从以下版本开始:
- 2.5.2
- 作者:
- Juergen Hoeller, Arjen Poutsma
- 另请参阅:
invokeHandlerMethod(java.lang.reflect.Method, java.lang.Object, org.springframework.web.context.request.NativeWebRequest, org.springframework.ui.ExtendedModelMap)
构造器概要
构造器 构造器 说明 HandlerMethodInvoker(HandlerMethodResolver methodResolver)已过时。HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer)已过时。HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter<?>[] messageConverters)已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected voidaddReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)已过时。protected WebDataBindercreateBinder(NativeWebRequest webRequest, Object target, String objectName)已过时。protected HttpInputMessagecreateHttpInputMessage(NativeWebRequest webRequest)已过时。Return aHttpInputMessagefor the givenNativeWebRequest.protected HttpOutputMessagecreateHttpOutputMessage(NativeWebRequest webRequest)已过时。Return aHttpOutputMessagefor the givenNativeWebRequest.protected voiddoBind(WebDataBinder binder, NativeWebRequest webRequest)已过时。protected voidinitBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest)已过时。ObjectinvokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel)已过时。protected booleanisBindingCandidate(Object value)已过时。Determine whether the given value qualifies as a "binding candidate", i.e. might potentially be subject to bean-style data binding later on.protected StringparseDefaultValueAttribute(String value)已过时。protected voidraiseMissingCookieException(String cookieName, Class<?> paramType)已过时。protected voidraiseMissingHeaderException(String headerName, Class<?> paramType)已过时。protected voidraiseMissingParameterException(String paramName, Class<?> paramType)已过时。protected voidraiseSessionRequiredException(String message)已过时。protected ObjectresolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest)已过时。protected ObjectresolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest)已过时。Resolves the given@CookieValueannotation.protected ObjectresolveDefaultValue(String value)已过时。protected StringresolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest)已过时。Resolves the given@PathVariableannotation.protected ObjectresolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler)已过时。Resolves the given@RequestBodyannotation.protected ObjectresolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest)已过时。voidupdateModelAttributes(Object handler, Map<String,Object> mavModel, ExtendedModelMap implicitModel, NativeWebRequest webRequest)已过时。
构造器详细资料
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver)
已过时。
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer)
已过时。
HandlerMethodInvoker
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter<?>[] messageConverters)
已过时。
方法详细资料
invokeHandlerMethod
public final Object invokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel) throws Exception
已过时。- 抛出:
Exception
updateModelAttributes
public final void updateModelAttributes(Object handler, Map<String,Object> mavModel, ExtendedModelMap implicitModel, NativeWebRequest webRequest) throws Exception
已过时。- 抛出:
Exception
initBinder
protected void initBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest) throws Exception
已过时。- 抛出:
Exception
resolveRequestBody
protected Object resolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler) throws Exception
已过时。Resolves the given@RequestBodyannotation.- 抛出:
Exception
resolveCookieValue
protected Object resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
已过时。Resolves the given@CookieValueannotation.Throws an UnsupportedOperationException by default.
- 抛出:
Exception
resolvePathVariable
protected String resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
已过时。Resolves the given@PathVariableannotation.Throws an UnsupportedOperationException by default.
- 抛出:
Exception
isBindingCandidate
protected boolean isBindingCandidate(Object value)
已过时。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
已过时。- 抛出:
Exception
raiseMissingHeaderException
protected void raiseMissingHeaderException(String headerName, Class<?> paramType) throws Exception
已过时。- 抛出:
Exception
raiseMissingCookieException
protected void raiseMissingCookieException(String cookieName, Class<?> paramType) throws Exception
已过时。- 抛出:
Exception
raiseSessionRequiredException
protected void raiseSessionRequiredException(String message) throws Exception
已过时。- 抛出:
Exception
createBinder
protected WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName) throws Exception
已过时。- 抛出:
Exception
doBind
protected void doBind(WebDataBinder binder, NativeWebRequest webRequest) throws Exception
已过时。- 抛出:
Exception
createHttpInputMessage
protected HttpInputMessage createHttpInputMessage(NativeWebRequest webRequest) throws Exception
已过时。Return aHttpInputMessagefor the givenNativeWebRequest.Throws an UnsupportedOperation1Exception by default.
- 抛出:
Exception
createHttpOutputMessage
protected HttpOutputMessage createHttpOutputMessage(NativeWebRequest webRequest) throws Exception
已过时。Return aHttpOutputMessagefor the givenNativeWebRequest.Throws an UnsupportedOperationException by default.
- 抛出:
Exception
parseDefaultValueAttribute
protected String parseDefaultValueAttribute(String value)
已过时。
resolveDefaultValue
protected Object resolveDefaultValue(String value)
已过时。
resolveCommonArgument
protected Object resolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest) throws Exception
已过时。- 抛出:
Exception
resolveStandardArgument
protected Object resolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest) throws Exception
已过时。- 抛出:
Exception
addReturnValueAsModelAttribute
protected final void addReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)
已过时。