public final class FProxyToadlet extends Toadlet implements RequestClient
Modifier and Type | Field and Description |
---|---|
static long |
MAX_LENGTH_NO_PROGRESS |
static long |
MAX_LENGTH_WITH_PROGRESS
Maximum size for transparent pass-through.
|
static short |
PRIORITY |
HANDLE_METHOD_PREFIX
Constructor and Description |
---|
FProxyToadlet(HighLevelSimpleClient client,
NodeClientCore core,
FProxyFetchTracker tracker) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowPOSTWithoutPassword()
Override to return true if the toadlet should handle POSTs that don't have the correct form
password.
|
void |
handleMethodGET(java.net.URI uri,
HTTPRequest httprequest,
ToadletContext ctx)
Handle a GET request.
|
void |
handleMethodPOST(java.net.URI uri,
HTTPRequest req,
ToadletContext ctx) |
static java.lang.String |
l10n(java.lang.String msg) |
static java.lang.String |
l10n(java.lang.String key,
java.lang.String[] pattern,
java.lang.String[] value) |
static void |
maybeCreateFProxyEtc(NodeClientCore core,
Node node,
Config config,
SimpleToadletServer server) |
java.lang.String |
path() |
boolean |
persistent()
Is this request persistent? **Must not change!**
|
boolean |
realTimeFlag()
Send the request with the real time flag enabled? Real-time requests are given
a higher priority in data transfers, but fewer of them are accepted.
|
addHomepageLink, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReply
public static long MAX_LENGTH_WITH_PROGRESS
public static long MAX_LENGTH_NO_PROGRESS
public static final short PRIORITY
public FProxyToadlet(HighLevelSimpleClient client, NodeClientCore core, FProxyFetchTracker tracker)
public boolean allowPOSTWithoutPassword()
Toadlet
allowPOSTWithoutPassword
in class Toadlet
public void handleMethodPOST(java.net.URI uri, HTTPRequest req, ToadletContext ctx) throws ToadletContextClosedException, java.io.IOException, RedirectException
ToadletContextClosedException
java.io.IOException
RedirectException
public static java.lang.String l10n(java.lang.String msg)
public void handleMethodGET(java.net.URI uri, HTTPRequest httprequest, ToadletContext ctx) throws ToadletContextClosedException, java.io.IOException, RedirectException
Toadlet
handleMethodGET
in class Toadlet
uri
- The URI being fetched.httprequest
- 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
RedirectException
public static java.lang.String l10n(java.lang.String key, java.lang.String[] pattern, java.lang.String[] value)
public static void maybeCreateFProxyEtc(NodeClientCore core, Node node, Config config, SimpleToadletServer server) throws java.io.IOException
java.io.IOException
public boolean persistent()
RequestClient
persistent
in interface RequestClient
public boolean realTimeFlag()
RequestClient
realTimeFlag
in interface RequestClient