public class StaticToadlet extends Toadlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OVERRIDE |
static java.lang.String |
OVERRIDE_URL |
static java.lang.String |
ROOT_PATH |
static java.lang.String |
ROOT_URL |
HANDLE_METHOD_PREFIX
Modifier and Type | Method and Description |
---|---|
void |
handleMethodGET(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
Handle a GET request.
|
static boolean |
haveFile(java.lang.String path)
Do we have a specific static file? Note that override files are not
supported here as it is a static method.
|
java.lang.String |
path() |
addHomepageLink, allowPOSTWithoutPassword, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReply
public static final java.lang.String ROOT_URL
public static final java.lang.String ROOT_PATH
public static final java.lang.String OVERRIDE
public static final java.lang.String OVERRIDE_URL
public void handleMethodGET(java.net.URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, java.io.IOException
Toadlet
handleMethodGET
in class Toadlet
uri
- The URI being fetched.request
- The original HTTPRequest, convenient for e.g. fetching ?blah=blah parameters.ctx
- The request context. Mainly used for sending a reply; this identifies which
request we are replying to. Also gives access to lots of important objects e.g. PageMaker.ToadletContextClosedException
java.io.IOException
public static boolean haveFile(java.lang.String path)
The
- path to the file, relative to the staticfiles directory.