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, wrapandThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleprotected org.osgl.logging.Logger logger
public static final RequestHandler DUMB
public boolean requireResolveContext()
RequestHandlerReturns 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. StaticFileGetter
requireResolveContext in interface RequestHandlerrequireResolveContext in class RequestHandlerBasepublic CSRF.Spec csrfSpec()
RequestHandlerGet CSRF specification that applied to this request handler
csrfSpec in interface RequestHandlercsrfSpec in class RequestHandlerBasepublic boolean sessionFree()
RequestHandlerReturns if the handler is session free or not. If a handler is session free then the framework will NOT resolve session
sessionFree in interface RequestHandlersessionFree in class RequestHandlerBasetrue if the handler is session freepublic void prepareAuthentication(ActionContext context)
RequestHandlerSetting 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.