public class QueueToadlet extends Toadlet implements RequestCompletionCallback, LinkEnabledCallback
| Modifier and Type | Class and Description |
|---|---|
static class |
QueueToadlet.QueueColumn |
HANDLE_METHOD_PREFIX| Constructor and Description |
|---|
QueueToadlet(NodeClientCore core,
FCPServer fcp,
HighLevelSimpleClient client,
boolean uploads) |
| Modifier and Type | Method and Description |
|---|---|
static HTMLNode |
createProgressCell(boolean advancedMode,
boolean started,
ClientPut.COMPRESS_STATE compressing,
int fetched,
int failed,
int fatallyFailed,
int min,
int total,
boolean finalized,
boolean upload) |
void |
handleMethodGET(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
Handle a GET request.
|
void |
handleMethodPOST(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx) |
boolean |
isEnabled(ToadletContext ctx)
Whether to show the link?
|
protected java.lang.String |
makeKeysList(ClientContext context,
boolean inserts) |
void |
notifyFailure(ClientRequest req)
Callback called when a request fails
|
void |
notifySuccess(ClientRequest req)
Callback called when a request succeeds.
|
void |
onRemove(ClientRequest req)
Callback when a request is removed
|
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, writeTextReplypublic QueueToadlet(NodeClientCore core, FCPServer fcp, HighLevelSimpleClient client, boolean uploads)
public void handleMethodPOST(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
throws ToadletContextClosedException,
java.io.IOException,
RedirectException
ToadletContextClosedExceptionjava.io.IOExceptionRedirectExceptionpublic void handleMethodGET(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
throws ToadletContextClosedException,
java.io.IOException,
RedirectException
ToadlethandleMethodGET in class Toadleturi - 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.ToadletContextClosedExceptionjava.io.IOExceptionRedirectExceptionprotected java.lang.String makeKeysList(ClientContext context, boolean inserts) throws PersistenceDisabledException
PersistenceDisabledExceptionpublic static HTMLNode createProgressCell(boolean advancedMode, boolean started, ClientPut.COMPRESS_STATE compressing, int fetched, int failed, int fatallyFailed, int min, int total, boolean finalized, boolean upload)
public void notifyFailure(ClientRequest req)
RequestCompletionCallbacknotifyFailure in interface RequestCompletionCallbackpublic void notifySuccess(ClientRequest req)
RequestCompletionCallbacknotifySuccess in interface RequestCompletionCallbackpublic void onRemove(ClientRequest req)
RequestCompletionCallbackonRemove in interface RequestCompletionCallbackpublic boolean isEnabled(ToadletContext ctx)
LinkEnabledCallbackisEnabled in interface LinkEnabledCallbackctx - The request which is asking. Can be null.