Package net.i2p.router.web.helpers
Class NetDbRenderer
java.lang.Object
net.i2p.router.web.helpers.NetDbRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Sort by style, then host -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderLeaseSet
(Writer out, String hostname, boolean debug) Single LeaseSetvoid
renderLeaseSetHTML
(Writer out, boolean debug, Hash client) All the leasesetsvoid
renderRouterInfoHTML
(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, int highPort, SigType type, EncType etype, String mtu, String ipv6, String ssucaps, String tr, int cost, int icount) One String must be non-nullvoid
renderStatusHTML
(Writer out, int pageSize, int page, int mode)
-
Constructor Details
-
NetDbRenderer
-
-
Method Details
-
renderRouterInfoHTML
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, int highPort, SigType type, EncType etype, String mtu, String ipv6, String ssucaps, String tr, int cost, int icount) throws IOException One String must be non-null- Parameters:
page
- zero-basedrouterPrefix
- may be null. "." for our router onlyversion
- may be nullcountry
- may be nullfamily
- may be nullhighPort
- if nonzero, a range from port to highPort inclusive- Throws:
IOException
-
renderLeaseSetHTML
All the leasesets- Parameters:
debug
-client
- null for main db; non-null for client db- Throws:
IOException
- Since:
- 0.7.14 sort by distance from us, display median distance, and other stuff, useful when floodfill
-
renderLeaseSet
Single LeaseSet- Throws:
IOException
- Since:
- 0.9.57
-
renderStatusHTML
- Parameters:
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfos mode 3: Same as 0 but sort countries by count- Throws:
IOException
-