@ApplicationScoped 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 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 Method method
protected void releaseResources()
releaseResources
in class DestroyableBase
public int priority()
priority
in interface Prioritised
public Method invokeMethod()
invokeMethod
in interface ActionHandlerInvoker
public ReflectedHandlerInvoker attribute(String key, Object value)
public <T> T attribute(String key)
public void accept(ActionHandlerInvoker.Visitor visitor)
accept
in interface ActionHandlerInvoker
accept
in interface AfterInterceptorInvoker
accept
in interface ExceptionInterceptorInvoker
public Class<?> controllerClass()
public 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)
handle
in interface ActionHandlerInvoker
public org.osgl.mvc.result.Result handle(org.osgl.mvc.result.Result result, ActionContext actionContext) throws Exception
handle
in interface AfterInterceptorInvoker
Exception
public org.osgl.mvc.result.Result handle(Exception e, ActionContext actionContext) throws Exception
handle
in interface ExceptionInterceptorInvoker
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 String contentSecurityPolicy()
contentSecurityPolicy
in interface ActionHandlerInvoker
public boolean disableContentSecurityPolicy()
disableContentSecurityPolicy
in interface ActionHandlerInvoker
public void setLargeResponseHint()
public boolean checkTemplate(ActionContext context)
public <T extends Annotation> T getAnnotation(Class<T> annoType)
public boolean hasAnnotation(Class<? extends Annotation> annoType)
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–2018 ActFramework. All rights reserved.