public class OpennetConnectionsToadlet extends ConnectionsToadlet implements LinkEnabledCallback
| Modifier and Type | Class and Description |
|---|---|
protected class |
OpennetConnectionsToadlet.OpennetComparator |
ConnectionsToadlet.ComparatorByStatus, ConnectionsToadlet.PeerAdditionReturnCodescore, isReversed, node, peers, showTrivialFoafConnections, statsHANDLE_METHOD_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
OpennetConnectionsToadlet(Node n,
NodeClientCore core,
HighLevelSimpleClient client) |
| 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 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) |
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?
|
boolean |
isEnabled(ToadletContext ctx)
Whether to show the link?
|
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, drawTrustColumn, drawVisibilityColumn, handleAltPost, hasTrustColumn, hasVisibilityColumn, sendErrorPageaddHomepageLink, allowPOSTWithoutPassword, findSupportedMethods, getClientImpl, sendErrorPage, sendErrorPage, sendErrorPage, showAsToadlet, showAsToadlet, writeHTMLReply, writeHTMLReply, writeHTMLReply, writeInternalError, writeReply, writeReply, writeReply, writeReply, writeReply, writeReply, writeTemporaryRedirect, writeTextReply, writeTextReplyprotected OpennetConnectionsToadlet(Node n, NodeClientCore core, HighLevelSimpleClient client)
protected void drawNameColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus, boolean advanced)
ConnectionsToadletdrawNameColumn in class ConnectionsToadletprotected void drawPrivateNoteColumn(HTMLNode peerRow, PeerNodeStatus peerNodeStatus, boolean fProxyJavascriptEnabled)
ConnectionsToadletdrawPrivateNoteColumn in class ConnectionsToadletprotected boolean hasNameColumn()
ConnectionsToadlethasNameColumn in class ConnectionsToadletprotected boolean hasPrivateNoteColumn()
ConnectionsToadlethasPrivateNoteColumn in class ConnectionsToadletprotected SimpleFieldSet getNoderef()
getNoderef in class ConnectionsToadletprotected PeerNodeStatus[] getPeerNodeStatuses(boolean noHeavy)
getPeerNodeStatuses in class ConnectionsToadletpublic boolean isEnabled(ToadletContext ctx)
LinkEnabledCallbackisEnabled in interface LinkEnabledCallbackctx - The request which is asking. Can be null.protected 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 boolean isOpennet()
ConnectionsToadletisOpennet in class ConnectionsToadletprotected java.util.Comparator<PeerNodeStatus> comparator(java.lang.String sortBy, boolean reversed)
comparator 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