class BanlistRenderer extends Object
| Constructor and Description |
|---|
BanlistRenderer(RouterContext context)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
int | countBannedFloodfills()Count active bans of floodfill-capable peers, matching the banFF
classification used by renderBanlist(Writer, boolean):
caps from the session log or netdb, or a "floodfill" cause. |
void | renderBanlistCompact(Writer out)Render the compact banlist HTML table. |
void | renderBanlistFragment(Writer out)Render only the <tbody id=sessionBanlist> for the contentonly
fragment mode, with a data-key per row for the worker-side row diff. |
public BanlistRenderer(RouterContext context)
context - the router contextpublic int countBannedFloodfills()
renderBanlist(Writer, boolean):
caps from the session log or netdb, or a "floodfill" cause.public void renderBanlistCompact(Writer out) throws IOException
out - the writer to render toIOException - if writing failspublic void renderBanlistFragment(Writer out) throws IOException
<tbody id=sessionBanlist> for the contentonly
fragment mode, with a data-key per row for the worker-side row diff.
The full page keeps the wrapper div, thead, and tfoot.out - the writer to render toIOException - if writing fails