public class RedirectDir extends FastRequestHandler implements ExpressHandler
Destroyable.Util
DUMB, logger
Constructor and Description |
---|
RedirectDir(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ActionContext context)
Invoke handler upon an action context
|
boolean |
supportPartialPath()
Indicate if this request handler support partial path lookup.
|
java.lang.String |
toString() |
csrfSpec, prepareAuthentication, requireResolveContext, sessionFree
apply, corsSpec, destroy, express, isDestroyed, noContextResoving, realHandler, releaseResources, scope, setExpress, setSessionFree, wrap
public void handle(ActionContext context)
RequestHandler
Invoke handler upon an action context
handle
in interface RequestHandler
context
- the context datapublic boolean supportPartialPath()
RequestHandler
Indicate if this request handler support partial path lookup. Usually this method should return false
. However for certain request handler like FileGetter
they need to support partial path lookup. Take the example of the following route mapping:
GET /public staticDir: /public
which map url path /public
to a StaticFileGetter
with base dir set to /public
, it needs to support all path starts with “/public”, like “/public/js/jquery.js” etc.supportPartialPath
in interface RequestHandler
supportPartialPath
in class RequestHandlerBase
true
if the request handler support partial path lookup or false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2017 ActFramework. All rights reserved.