package net.i2p.router.web.helpers
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
Most jsp pages in console use a "Helper" or a "Renderer" class to assist in generating the HTML. For configuration pages that accept changes via POST, there is additionally a "Handler" class to process the POST data. Helpers usually extend HelperBase, and Handlers usually extend FormHandler.
No classes here are part of a public API; subject to change.
- ClassDescriptionRenders HTML display of banned routers for the router console.Entry for IP-only bans from sessionbans.txt.Renders router capability strings as HTML links, identically for the NetDb and Sybil views.Dump out our local SSL certs, if any.Renders every client ratchet session key manager as one table, with a thead/tbody/tfoot section per client as on the update manager page, so the columns align across all clients.Handles form submissions from the advanced configuration page.Helper for advanced configuration page rendering and form processing.Handler to deal with form submissions from the ban configuration form.Helper for ban configuration page rendering.Handles configuration changes for I2P client applications and web apps.Helper for clients configuration page rendering and form processing.A client app config entry with display index.Handler for family configuration.Helper for family configuration page rendering and form processing.Simple home page configuration.Handles adding and revoking keys from the router keyring.Helper for keyring configuration page rendering and form processing.Comparator for sorting blind data by base32 string.Handler to deal with form submissions from the logging config form and act upon the values.Helper for logging configuration page rendering and form processing.Render the configuration menu at the top of all the config pages.A configuration tab entry with page name and display title.Handler to deal with form submissions from the main config form and act upon the values.Helper for network configuration page rendering and form processing.Handler for peer configuration.Helper for peer configuration page rendering and form processing.Handler for reseed configuration form processing.Helper for reseed configuration page rendering and form processing.Simple helper to control restarts/shutdowns in the left hand nav.Simple sidebar configuration handler.Handler to deal with form submissions from the stats config form and act upon the values.Helper for statistics configuration page rendering and form processing.Handler to deal with form submissions from the tunnel config form and act upon the values.Helper for tunnels configuration page rendering and form processing.Handles router console UI configuration and theme management.Helper class for rendering and processing user interface configuration pages in the I2P router console.Overview tiles and mini-graphs for the debug page entry point, one tile per debug tab summarizing what that tab shows, linking to it.Helper for router event log display and filtering.Dump info on jars and wars.Renders the graphs list (/graphs.jsp) and the single-stat page (/graph.jsp), plus the graph display configuration form.Orders graphs for display: "Router" group first, then remaining groups alphabetically, then by stat name and period.Sorts in true binary order, not Base64 string order.Helper for the /health page - renders router health rings using
RingRendererfor a quick visual overview.Baseline-vs-current evaluation result for a single stat.Render the configuration menu at the top of all the config pages.One help tab.Helper for router console home page and configuration.Ignore case, current locale.Whether each site in the Sites of Interest listing is still worth showing.Helper for router information page rendering and form processing.Helper for job queue page rendering and form processing.Orders job names alphabetically with a locale-sensitive collator, so the console's job list sorts the way the user's locale expects.A group of jobs with the same name and time key.Sorts job groups by name, then by time.Sorts job groups by time descending, keeping equal times in their current order.Orders job rows for display by job name, using a locale-aware collator.Derives the time key used to group a job.Renders the port mapper debug tab as a single consolidated table: the services registered with the port mapper plus the in-JVM internal server sockets, with a column flagging which ports are internal.Helper for the logs page.Comparators used when rendering the network database pages.Comparator for countries by translated name.Comparator for LeaseSets, used in the leaseset listing.Comparator for LeaseSets sorted by hash distance from local router.Comparator for router addresses by transport then host.Helper for network database page rendering and form processing.Renders the network database (netdb) information for the router console.Memoized "{0} ago" translations.Internal class to hold reverse DNS cache entries with expiration time.Summary tallies for the /netdb overview, all read-only once built.Cached snapshot of the network database sorted byRouterInfoComparator.Helper for peer connections page rendering and form processing.Sorts peers alphabetically.Totals accumulated while rendering NTCP peer rows.Sorts NTCP connections by a chosen field.Totals accumulated while rendering SSU peer rows.Helper class to refactor HTML rendering from out of the ProfileOrganizer.A peer profile bundled with its 1h lookup fail rate, computed once so the sort key and the rendered value cannot diverge.Sorts floodfill rows by 1h fail rate ascending (best first) so the initial render needs no client-side re-sort.Aggregates over the floodfill-capable peer set; every field is meant to describe the observed floodfill peers, fed to the health rings above the table.Used for floodfill-only page As of 0.9.29, sorts in true binary order, not base64 string.Sorts profiles by tier (fast > high-cap > standard) using pre-computed tier sets, then by binary hash order within each tier.The sorted peer set, hidden-stale count, hide window, and pre-computed tier snapshots fromProfileOrganizerRenderer.loadProfiles(int).Helper for peer profiles page rendering and form processing.Handler to create a i2preseed.zip file.Handler to deal with reseed requests.Reusable SVG ring chart generator for health-ring dashboards.A section of a multi-section ring with a proportion and color class.Sorts in true binary order, not Base64 string order.Helper for the /samdebug page - shows SAM bridge status with rings and a session table.Helper for searches.Simple helper to query the appropriate router for data necessary to render the summary sections on the router console.Enumeration of network reachability state values.State message to be displayed to the user in the summary bar.Helper for sidebar rendering and navigation.Helper for statistics page rendering and form processing.Dump the stats to the web admin interface.Helper for the /streams page - shows active I2P streaming connections.Renders Sybil attack analysis and detection information for debugging.SybilRenderer.FooComparator<K extends Comparable>Orders keys by how many routers share each.Orders names by how many routers share each.Orders router hashes by sybil points.Reverse points, then forward by text.Helper for transit tunnel summary page rendering and form processing.Helper for the transport tuning page (tuning.jsp).Helper for tunnel bandwidth page rendering and form processing.Helper for tunnel status page rendering and form processing.Helper for fastest participating tunnels page rendering and form processing.Helper for participating tunnels page rendering and form processing.Helper for tunnel peer count page rendering and form processing.For /tunnels.jsp, used byTunnelHelper.A bounded LRU cache extending LinkedHashMap with computeIfAbsent support.Sorts peers by country then name.Data for the tunnel peer count page: the counts per peer plus the validated, sorted peer list shared by the full and fragment renders.Encapsulates results of a reverse DNS lookup and related domain information for a router peer IP address.Sorts tunnels by hop configuration.Order participating tunnels by throughput, fastest first.Sorts tunnel infos for the display.Comparators for various columns.Comparator for sorting UDP peers by peer hash in ascending order.Comparator for sorting UDP peers by congestion window in ascending order.Comparator for sorting UDP peers by duplicate packets received in ascending order.Comparator for sorting UDP peers by inbound idle time in ascending order.Comparator for sorting UDP peers by outbound idle time in ascending order.Comparator for sorting UDP peers by maximum transmission unit in ascending order.Base comparator for UDP peers that falls back to peer hash comparison.Comparator for sorting UDP peers by inbound rate in ascending order.Comparator for sorting UDP peers by outbound rate in ascending order.Comparator for sorting UDP peers by received messages count in ascending order.Comparator for sorting UDP peers by retransmitted packets in ascending order.Comparator for sorting UDP peers by retransmission timeout in ascending order.Comparator for sorting UDP peers by round trip time in ascending order.Comparator for sorting UDP peers by sent messages count in ascending order.Comparator for sorting UDP peers by clock skew in ascending order.Comparator for sorting UDP peers by slow start threshold in ascending order.Comparator for sorting UDP peers by uptime in ascending order.The new user wizard.The new user wizard.Test results.