public class DarknetConnectionsToadlet extends ConnectionsToadlet
| Modifier and Type | Class and Description |
|---|---|
protected class |
DarknetConnectionsToadlet.DarknetComparator |
ConnectionsToadlet.ComparatorByStatus, ConnectionsToadlet.PeerAdditionReturnCodescore, isReversed, node, peers, showTrivialFoafConnections, statsHANDLE_METHOD_PREFIX| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptRefPosts() |
protected java.util.Comparator<PeerNodeStatus> |
comparator(java.lang.String sortBy,
boolean reversed) |
protected java.lang.String |
defaultRedirectLocation()
Where to redirect to if there is an error
|
protected void |
drawNameColumn(HTMLNode peerRow,
PeerNodeStatus peerNodeStatus,
boolean advanced)
Draw the name column, if there is one.
|
protected void |
drawPeerActionSelectBox(HTMLNode peerForm,
boolean advancedModeEnabled)
If showPeerActionsBox() is true, this will be called directly after drawing the peers table.
|
protected void |
drawPrivateNoteColumn(HTMLNode peerRow,
PeerNodeStatus peerNodeStatus,
boolean fProxyJavascriptEnabled)
Draw the private note column.
|
protected void |
drawTrustColumn(HTMLNode peerRow,
PeerNodeStatus peerNodeStatus) |
protected void |
drawVisibilityColumn(HTMLNode peerRow,
PeerNodeStatus peerNodeStatus,
boolean advancedModeEnabled) |
protected SimpleFieldSet |
getNoderef() |
protected java.lang.String |
getPageTitle(java.lang.String titleCountString) |
protected java.lang.String |
getPeerListTitle()
What should the heading (before "(more detailed)") be on the peers table?
|
protected PeerNodeStatus[] |
getPeerNodeStatuses(boolean noHeavy) |
protected void |
handleAltPost(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx,
boolean logMINOR)
Implement other post actions than adding nodes.
|
void |
handleMethodGET(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
Handle a GET request.
|
void |
handleMethodPOST(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx) |
protected boolean |
hasNameColumn()
Is there a name column?
|
protected boolean |
hasPrivateNoteColumn()
Is there a private note column?
|
protected boolean |
hasTrustColumn() |
protected boolean |
hasVisibilityColumn() |
protected boolean |
isOpennet()
Adding a darknet node or an opennet node?
|
java.lang.String |
path() |
protected boolean |
shouldDrawNoderefBox(boolean advancedModeEnabled) |
protected boolean |
showPeerActionsBox()
Should there be a checkbox for each peer, and drawPeerActionSelectBox() be called directly
after drawing the peers list?
|
drawAddPeerBox, drawAddPeerBox, sendErrorPageaddHomepageLink, allowPOSTWithoutPassword, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReplyprotected java.util.Comparator<PeerNodeStatus> comparator(java.lang.String sortBy, boolean reversed)
comparator in class ConnectionsToadletprotected boolean hasNameColumn()
ConnectionsToadlethasNameColumn in class ConnectionsToadletprotected void drawNameColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus, boolean advanced)
ConnectionsToadletdrawNameColumn in class ConnectionsToadletprotected boolean hasTrustColumn()
hasTrustColumn in class ConnectionsToadletprotected void drawTrustColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus)
drawTrustColumn in class ConnectionsToadletprotected boolean hasVisibilityColumn()
hasVisibilityColumn in class ConnectionsToadletprotected void drawVisibilityColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus, boolean advancedModeEnabled)
drawVisibilityColumn in class ConnectionsToadletprotected boolean hasPrivateNoteColumn()
ConnectionsToadlethasPrivateNoteColumn in class ConnectionsToadletprotected void drawPrivateNoteColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus, boolean fProxyJavascriptEnabled)
ConnectionsToadletdrawPrivateNoteColumn in class ConnectionsToadletprotected SimpleFieldSet getNoderef()
getNoderef in class ConnectionsToadletprotected PeerNodeStatus[] getPeerNodeStatuses(boolean noHeavy)
getPeerNodeStatuses in class ConnectionsToadletprotected java.lang.String getPageTitle(java.lang.String titleCountString)
getPageTitle in class ConnectionsToadletprotected boolean shouldDrawNoderefBox(boolean advancedModeEnabled)
shouldDrawNoderefBox in class ConnectionsToadletprotected boolean showPeerActionsBox()
ConnectionsToadletshowPeerActionsBox in class ConnectionsToadletprotected void drawPeerActionSelectBox(HTMLNode peerForm, boolean advancedModeEnabled)
ConnectionsToadletdrawPeerActionSelectBox in class ConnectionsToadletprotected java.lang.String getPeerListTitle()
ConnectionsToadletgetPeerListTitle in class ConnectionsToadletprotected boolean acceptRefPosts()
acceptRefPosts in class ConnectionsToadletprotected java.lang.String defaultRedirectLocation()
ConnectionsToadletdefaultRedirectLocation in class ConnectionsToadletprotected void handleAltPost(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx,
boolean logMINOR)
throws ToadletContextClosedException,
java.io.IOException,
RedirectException
handleAltPost in class ConnectionsToadletjava.io.IOExceptionToadletContextClosedExceptionRedirectExceptionprotected boolean isOpennet()
ConnectionsToadletisOpennet in class ConnectionsToadletpublic void handleMethodGET(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
throws ToadletContextClosedException,
java.io.IOException,
RedirectException
ToadlethandleMethodGET in class ConnectionsToadleturi - 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.IOExceptionRedirectExceptionpublic void handleMethodPOST(java.net.URI uri,
HTTPRequest request,
ToadletContext ctx)
throws ToadletContextClosedException,
java.io.IOException,
RedirectException,
ConfigException
handleMethodPOST in class ConnectionsToadletToadletContextClosedExceptionjava.io.IOExceptionRedirectExceptionConfigException