public class ApplicationRequestHandler extends Object implements IFilterRequestHandler
| Constructor and Description |
|---|
ApplicationRequestHandler(DomApplication application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(IRequestContext ctx)
Accept .obit, the defined DomUI extension (.ui by default) and the empty URL if a home page is set in
DomApplication. |
static void |
generateAjaxRedirect(RequestContextImpl ctx,
String url)
Generate an AJAX redirect command.
|
static void |
generateHttpRedirect(RequestContextImpl ctx,
String to,
String rsn)
Sends a redirect as a 304 MOVED command.
|
JSTemplate |
getExceptionTemplate() |
void |
handleRequest(RequestContextImpl ctx) |
static void |
renderOptimalDelta(RequestContextImpl ctx,
Page page) |
public ApplicationRequestHandler(@Nonnull DomApplication application)
public boolean accepts(@Nonnull IRequestContext ctx) throws Exception
DomApplication.accepts in interface IFilterRequestHandlerExceptionIFilterRequestHandler.accepts(to.etc.domui.server.IRequestContext)public void handleRequest(@Nonnull RequestContextImpl ctx) throws Exception
handleRequest in interface IFilterRequestHandlerExceptionpublic static void generateHttpRedirect(RequestContextImpl ctx, String to, String rsn) throws Exception
ctx - to - rsn - Exceptionpublic static void generateAjaxRedirect(RequestContextImpl ctx, String url) throws Exception
ctx - url - Exceptionpublic static void renderOptimalDelta(RequestContextImpl ctx, Page page) throws Exception
Exception@Nonnull public JSTemplate getExceptionTemplate() throws Exception
ExceptionCopyright © 2017 etc.to. All rights reserved.