class NetDbRenderer extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NetDbRenderer.RAComparator
Sort by style, then host
|
Constructor and Description |
---|
NetDbRenderer(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
renderLeaseSetHTML(Writer out,
boolean debug) |
void |
renderRouterInfoHTML(Writer out,
int pageSize,
int page,
String routerPrefix,
String version,
String country,
String family,
String caps,
String ip,
String sybil,
int port,
SigType type,
EncType etype,
String mtu,
String ipv6,
String ssucaps,
String tr,
int cost)
One String must be non-null
|
void |
renderStatusHTML(Writer out,
int pageSize,
int page,
int mode) |
public NetDbRenderer(RouterContext ctx)
public void renderRouterInfoHTML(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, SigType type, EncType etype, String mtu, String ipv6, String ssucaps, String tr, int cost) throws IOException
page
- zero-basedrouterPrefix
- may be null. "." for our router onlyversion
- may be nullcountry
- may be nullfamily
- may be nullIOException
public void renderLeaseSetHTML(Writer out, boolean debug) throws IOException
debug
- @since 0.7.14 sort by distance from us, display
median distance, and other stuff, useful when floodfillIOException
public void renderStatusHTML(Writer out, int pageSize, int page, int mode) throws IOException
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfosIOException