public final class PartRequestHandler extends Object implements IFilterRequestHandler
| Constructor and Description |
|---|
PartRequestHandler(DomApplication application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(IRequestContext ri)
Accept urls that end in .part or that have a first segment containing .part.
|
IPartRenderer |
findPartRenderer(String name)
Returns a thingy which knows how to render the part.
|
void |
generate(IBufferedPartFactory pf,
RequestContextImpl ctx,
String url)
Helper which handles possible cached buffered parts.
|
CachedPart |
getCachedInstance(IBufferedPartFactory pf,
Object key) |
CachedPart |
getCachedInstance(IBufferedPartFactory pf,
RequestContextImpl ctx,
String url) |
void |
handleRequest(RequestContextImpl ctx)
Entrypoint for when the class name is inside the URL (direct entry).
|
void |
renderUrlPart(IUrlPart part,
RequestContextImpl ctx) |
public PartRequestHandler(@Nonnull DomApplication application)
public boolean accepts(@Nonnull IRequestContext ri) throws Exception
IPartFactory.accepts in interface IFilterRequestHandlerExceptionIFilterRequestHandler.accepts(to.etc.domui.server.IRequestContext)public void handleRequest(@Nonnull RequestContextImpl ctx) throws Exception
handleRequest in interface IFilterRequestHandlerExceptionIFilterRequestHandler.handleRequest(to.etc.domui.server.RequestContextImpl)public void renderUrlPart(IUrlPart part, RequestContextImpl ctx) throws Exception
Exceptionpublic IPartRenderer findPartRenderer(String name)
public void generate(IBufferedPartFactory pf, RequestContextImpl ctx, String url) throws Exception
pf - ctx - url - Exceptionpublic CachedPart getCachedInstance(IBufferedPartFactory pf, RequestContextImpl ctx, String url) throws Exception
Exceptionpublic CachedPart getCachedInstance(IBufferedPartFactory pf, Object key) throws Exception
ExceptionCopyright © 2017 etc.to. All rights reserved.