类 ActionMappingAnnotationHandler
java.lang.Object
cn.taketoday.web.handler.HandlerInterceptorHolder
cn.taketoday.web.handler.InterceptableRequestHandler
cn.taketoday.web.handler.method.ActionMappingAnnotationHandler
- 所有已实现的接口:
HandlerInterceptorsProvider,HttpRequestHandler
HTTP Request Annotation Handler
- 从以下版本开始:
- 4.0 2021/11/29 22:48
- 作者:
- Harry Yang
- 另请参阅:
-
RequestMappingRequestMappingController
-
字段概要
字段修饰符和类型字段说明private final Class<?>private cn.taketoday.reflect.MethodInvokerprivate final HandlerMethodprivate final ResolvableMethodParameter[]private ReturnValueHandlerprivate ReturnValueHandlerManager从类继承的字段 cn.taketoday.web.handler.HandlerInterceptorHolder
interceptors从接口继承的字段 cn.taketoday.web.HttpRequestHandler
NONE_RETURN_VALUE -
构造器概要
构造器构造器说明ActionMappingAnnotationHandler(HandlerMethod handlerMethod, ResolvableMethodParameter[] parameters, Class<?> beanType) -
方法概要
修饰符和类型方法说明protected voidapplyResponseStatus(RequestContext context) Set the response status according to theResponseStatusannotation.protected voidapplyResponseStatus(RequestContext context, HttpStatusCode status) private ObjectdoInvoke(RequestContext context) booleanprotected static ObjectfindProvidedArgument(ResolvableMethodParameter parameter, Object... providedArgs) from(Object handlerBean, Method method, ResolvableParameterFactory parameterFactory) from(Object handlerBean, Method method, ResolvableParameterFactory parameterFactory, Class<?> beanType) from(Supplier<Object> beanSupplier, Method method, ResolvableParameterFactory parameterFactory, Class<?> beanType) Class<?>abstract Objectprotected ObjecthandleInternal(RequestContext context) perform this handler' behavior internalvoidhandleReturnValue(RequestContext context, Object handler, Object returnValue) inthashCode()protected Objectinvoke(RequestContext context, Object... providedArgs) invokeHandler(RequestContext request) voidsetReturnValueHandlers(ReturnValueHandlerManager resultHandlers) toString()从类继承的方法 cn.taketoday.web.handler.InterceptableRequestHandler
handleRequest从类继承的方法 cn.taketoday.web.handler.HandlerInterceptorHolder
addInterceptors, addInterceptors, getHolder, getInterceptors, hasInterceptor, interceptorSize, setInterceptors, setInterceptors从接口继承的方法 cn.taketoday.web.HandlerInterceptorsProvider
getInterceptors, hasInterceptor
-
字段详细资料
-
handlerMethod
-
handlerInvoker
@Nullable private cn.taketoday.reflect.MethodInvoker handlerInvoker -
returnValueHandlerManager
-
returnValueHandler
-
resolvableParameters
-
beanType
-
-
构造器详细资料
-
ActionMappingAnnotationHandler
public ActionMappingAnnotationHandler(HandlerMethod handlerMethod, @Nullable ResolvableMethodParameter[] parameters, Class<?> beanType) -
ActionMappingAnnotationHandler
-
-
方法详细资料
-
getResolvableParameters
-
getJavaMethod
-
getMethod
-
setReturnValueHandlers
-
handleInternal
从类复制的说明:InterceptableRequestHandlerperform this handler' behavior internal- 指定者:
handleInternal在类中InterceptableRequestHandler- 抛出:
Throwable
-
doInvoke
- 抛出:
Throwable
-
getHandlerObject
-
getBeanType
-
invoke
- 抛出:
Throwable
-
findProvidedArgument
@Nullable protected static Object findProvidedArgument(ResolvableMethodParameter parameter, @Nullable Object... providedArgs) -
applyResponseStatus
Set the response status according to theResponseStatusannotation.- 抛出:
IOException
-
applyResponseStatus
protected void applyResponseStatus(RequestContext context, @Nullable HttpStatusCode status) throws IOException - 抛出:
IOException
-
handleReturnValue
public void handleReturnValue(RequestContext context, Object handler, Object returnValue) throws Exception - 抛出:
Exception
-
invokeHandler
- 抛出:
Throwable
-
toString
-
equals
-
hashCode
public int hashCode() -
from
public static ActionMappingAnnotationHandler from(Object handlerBean, Method method, ResolvableParameterFactory parameterFactory) -
from
public static ActionMappingAnnotationHandler from(Object handlerBean, Method method, ResolvableParameterFactory parameterFactory, Class<?> beanType) -
from
public static ActionMappingAnnotationHandler from(Supplier<Object> beanSupplier, Method method, ResolvableParameterFactory parameterFactory, Class<?> beanType)
-