类 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 aHandlerMethodResolver
for a specific handler type.Used by
AnnotationMethodHandlerAdapter
andAnnotationMethodHandlerAdapter
.- 从以下版本开始:
- 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 void
addReturnValueAsModelAttribute(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel)
已过时。protected WebDataBinder
createBinder(NativeWebRequest webRequest, Object target, String objectName)
已过时。protected HttpInputMessage
createHttpInputMessage(NativeWebRequest webRequest)
已过时。Return aHttpInputMessage
for the givenNativeWebRequest
.protected HttpOutputMessage
createHttpOutputMessage(NativeWebRequest webRequest)
已过时。Return aHttpOutputMessage
for the givenNativeWebRequest
.protected void
doBind(WebDataBinder binder, NativeWebRequest webRequest)
已过时。protected void
initBinder(Object handler, String attrName, WebDataBinder binder, NativeWebRequest webRequest)
已过时。Object
invokeHandlerMethod(Method handlerMethod, Object handler, NativeWebRequest webRequest, ExtendedModelMap implicitModel)
已过时。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.protected String
parseDefaultValueAttribute(String value)
已过时。protected void
raiseMissingCookieException(String cookieName, Class<?> paramType)
已过时。protected void
raiseMissingHeaderException(String headerName, Class<?> paramType)
已过时。protected void
raiseMissingParameterException(String paramName, Class<?> paramType)
已过时。protected void
raiseSessionRequiredException(String message)
已过时。protected Object
resolveCommonArgument(MethodParameter methodParameter, NativeWebRequest webRequest)
已过时。protected Object
resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest)
已过时。Resolves the given@CookieValue
annotation.protected Object
resolveDefaultValue(String value)
已过时。protected String
resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest)
已过时。Resolves the given@PathVariable
annotation.protected Object
resolveRequestBody(MethodParameter methodParam, NativeWebRequest webRequest, Object handler)
已过时。Resolves the given@RequestBody
annotation.protected Object
resolveStandardArgument(Class<?> parameterType, NativeWebRequest webRequest)
已过时。void
updateModelAttributes(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@RequestBody
annotation.- 抛出:
Exception
resolveCookieValue
protected Object resolveCookieValue(String cookieName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
已过时。Resolves the given@CookieValue
annotation.Throws an UnsupportedOperationException by default.
- 抛出:
Exception
resolvePathVariable
protected String resolvePathVariable(String pathVarName, Class<?> paramType, NativeWebRequest webRequest) throws Exception
已过时。Resolves the given@PathVariable
annotation.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 aHttpInputMessage
for the givenNativeWebRequest
.Throws an UnsupportedOperation1Exception by default.
- 抛出:
Exception
createHttpOutputMessage
protected HttpOutputMessage createHttpOutputMessage(NativeWebRequest webRequest) throws Exception
已过时。Return aHttpOutputMessage
for 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)
已过时。