class TunnelRenderer extends Object
| Constructor and Description |
|---|
TunnelRenderer(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
String |
_t(String s,
Object o)
translate a string
|
boolean |
enableReverseLookups() |
(package private) static String |
range(int f,
int t) |
void |
renderGuide(Writer out)
Renders an HTML table describing the bandwidth tiers used for tunnels,
including their ranges and labels, and writes the output to the provided Writer.
|
void |
renderLifetimeBandwidth(Writer out,
TunnelPool in,
TunnelPool outPool) |
void |
renderParticipating(Writer out,
boolean bySpeed) |
void |
renderPeers(Writer out) |
void |
renderStatusHTML(Writer out) |
void |
renderTransitSummary(Writer out) |
public TunnelRenderer(RouterContext ctx)
public boolean enableReverseLookups()
static String range(int f, int t)
public void renderGuide(Writer out) throws IOException
out - the Writer to which the HTML content is writtenIOException - if an I/O error occurs during writingpublic void renderLifetimeBandwidth(Writer out, TunnelPool in, TunnelPool outPool) throws IOException
IOExceptionpublic void renderParticipating(Writer out, boolean bySpeed) throws IOException
IOExceptionpublic void renderPeers(Writer out) throws IOException
IOExceptionpublic void renderStatusHTML(Writer out) throws IOException
IOExceptionpublic void renderTransitSummary(Writer out) throws IOException
IOException