public abstract class FastRequestHandler extends RequestHandlerBase
For any handler that does not require the framework to lookup incoming request and construct the sessions, it shall extends from this class
Destroyable.Util
Modifier and Type | Field and Description |
---|---|
static RequestHandler |
DUMB |
protected org.osgl.logging.Logger |
logger |
Constructor and Description |
---|
FastRequestHandler() |
Modifier and Type | Method and Description |
---|---|
CSRF.Spec |
csrfSpec()
Get CSRF specification that applied to this request handler
|
void |
prepareAuthentication(ActionContext context)
Setting up handler for authentication.
|
boolean |
requireResolveContext()
Returns if the handler require framework to resolve context.
|
boolean |
sessionFree()
Returns if the handler is session free or not.
|
apply, corsSpec, destroy, express, isDestroyed, noContextResoving, realHandler, releaseResources, scope, setExpress, setSessionFree, supportPartialPath, wrap
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, times
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
protected org.osgl.logging.Logger logger
public static final RequestHandler DUMB
public boolean requireResolveContext()
RequestHandler
Returns if the handler require framework to resolve context. Usually it needs to resolve the context so that handler can access request params, session/flash etc. However some static handlers doesn’t require framework to do those things, e.g. FileGetter
requireResolveContext
in interface RequestHandler
requireResolveContext
in class RequestHandlerBase
public CSRF.Spec csrfSpec()
RequestHandler
Get CSRF specification that applied to this request handler
csrfSpec
in interface RequestHandler
csrfSpec
in class RequestHandlerBase
public boolean sessionFree()
RequestHandler
Returns if the handler is session free or not. If a handler is session free then the framework will NOT resolve session
sessionFree
in interface RequestHandler
sessionFree
in class RequestHandlerBase
true
if the handler is session freepublic void prepareAuthentication(ActionContext context)
RequestHandler
Setting up handler for authentication. For example, initialize the missing authentication handler, csrf failure handler.
context
- the current action contextCopyright © 2014–2017 ActFramework. All rights reserved.