public class RedirectDir extends FastRequestHandler implements ExpressHandler
Destroyable.UtilDUMB, 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, sessionFreeapply, corsSpec, destroy, express, isDestroyed, noContextResoving, realHandler, releaseResources, scope, setExpress, setSessionFree, wrappublic void handle(ActionContext context)
RequestHandlerInvoke handler upon an action context
handle in interface RequestHandlercontext - the context datapublic boolean supportPartialPath()
RequestHandlerIndicate if this request handler support partial path lookup. Usually this method should return false. However for certain request handler like StaticFileGetter 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 RequestHandlersupportPartialPath in class RequestHandlerBasetrue if the request handler support partial path lookup or false otherwisepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 ActFramework. All rights reserved.