public class ReflectedHandlerInvoker<M extends HandlerMethodMetaInfo> extends DestroyableBase implements ActionHandlerInvoker, AfterInterceptorInvoker, ExceptionInterceptorInvoker
Implement handler using https://github.com/EsotericSoftware/reflectasm
Modifier and Type | Class and Description |
---|---|
static interface |
ReflectedHandlerInvoker.ReflectedHandlerInvokerVisitor |
ActionHandlerInvoker.Visitor
Destroyable.Util
Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Method |
method |
logger
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed, scope
protected void releaseResources()
releaseResources
in class DestroyableBase
public int priority()
priority
in interface Prioritised
public java.lang.reflect.Method invokeMethod()
invokeMethod
in interface ActionHandlerInvoker
public void accept(ActionHandlerInvoker.Visitor visitor)
accept
in interface ActionHandlerInvoker
accept
in interface AfterInterceptorInvoker
accept
in interface ExceptionInterceptorInvoker
public java.lang.Class<?> controllerClass()
public java.lang.reflect.Method method()
public CacheSupportMetaInfo cacheSupport()
cacheSupport
in interface ActionHandlerInvoker
public MissingAuthenticationHandler missingAuthenticationHandler()
missingAuthenticationHandler
in interface ActionHandlerInvoker
public MissingAuthenticationHandler csrfFailureHandler()
csrfFailureHandler
in interface ActionHandlerInvoker
public org.osgl.mvc.result.Result handle(ActionContext context) throws java.lang.Exception
handle
in interface ActionHandlerInvoker
java.lang.Exception
public org.osgl.mvc.result.Result handle(org.osgl.mvc.result.Result result, ActionContext actionContext) throws java.lang.Exception
handle
in interface AfterInterceptorInvoker
java.lang.Exception
public org.osgl.mvc.result.Result handle(java.lang.Exception e, ActionContext actionContext) throws java.lang.Exception
handle
in interface ExceptionInterceptorInvoker
java.lang.Exception
public boolean sessionFree()
sessionFree
in interface ActionHandlerInvoker
sessionFree
in interface AfterInterceptorInvoker
sessionFree
in interface ExceptionInterceptorInvoker
public boolean express()
express
in interface ActionHandlerInvoker
express
in interface AfterInterceptorInvoker
express
in interface ExceptionInterceptorInvoker
public CORS.Spec corsSpec()
corsSpec
in interface ActionHandlerInvoker
corsSpec
in interface AfterInterceptorInvoker
corsSpec
in interface ExceptionInterceptorInvoker
public CSRF.Spec csrfSpec()
csrfSpec
in interface ActionHandlerInvoker
public org.osgl.mvc.result.NotFound notFoundOnMethod(java.lang.String message)
public org.osgl.mvc.result.BadRequest badRequestOnMethod(java.lang.String message)
public boolean checkTemplate(ActionContext context)
public static ControllerAction createControllerAction(ActionMethodMetaInfo meta, App app)
public static BeforeInterceptor createBeforeInterceptor(InterceptorMethodMetaInfo meta, App app)
public static AfterInterceptor createAfterInterceptor(InterceptorMethodMetaInfo meta, App app)
public static ExceptionInterceptor createExceptionInterceptor(CatchMethodMetaInfo meta, App app)
public static FinallyInterceptor createFinannyInterceptor(InterceptorMethodMetaInfo meta, App app)
Copyright © 2014–2017 ActFramework. All rights reserved.