package net.i2p.router.web
The router console user interface, implemented in routerconsole.jar, with these classes supporting the webapp in routerconsole.war. Entry point is RouterConsoleRunner, started from clients.config.
Most jsp pages in the 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. The base classes are in this package, but most Helpers, Handlers, and Renderers are in the helpers package.
Warning: No classes contained here are part of a public API. Subject to change. Not for public use.
- ClassDescriptionApplication information for the router console.Handler to deal with form submissions from the service config form and act upon the values.Handler for router update configuration.Helper class for managing I2P router update configuration and UI generation.Manage both plaintext and salted/hashed password storage in
router.config.Helper for including static content files in router console pages.Per-request utility for the opt-in console fragment mode.Helper for accessing router contexts by context ID.Copied and modded from I2PTunnel IndexBean (GPL).Capitalize first letter of each word of stringPeriodic check ref: https://dzone.com/articles/how-detect-java-deadlocksSimple form handler base class - does not depend on servlets or jsp, but instead the subclasses are populated with javabean properties.Message class to encapsulate the message text and the canClose flag.Basic graph defaults and maximum dimensions.A thread started byRouterConsoleRunnerthat checks the configuration for stats to be tracked via jrobin, and adds or deletes RRDs as necessary.Count and oldest age for oneGraphGenerator.StaleCause.Why coalesces are turning into samples that never reach a listener.What the watchdog may do about one rate's listener.Decide whether a repeated report is due, and remember the decision.Why a graph listener is not producing RRD writes.Registry of graph groupings: sets of stats that answer the same question and share a unit, so they can be drawn as one multi-series plot instead of several small ones.Creates and updates the in-memory or on-disk RRD database, and provides methods to generate graphs of the data.Generate the RRD graph png images, including the combined rate graph.Immutable configuration for a single graph render pass.Mutable counterpart ofGraphRenderer.GraphRenderConfig; every setter returns itself.The display values a graph frame draws with, overridable per theme with CSS custom properties.Base helper class for JSP helper beans.Block certain Host headers to prevent DNS rebinding attacks.Convert foo.jsp to foo_xx.jsp for language xx.Translate strings for this package.Helper for navigation and client application management in router console.HTML-formatted full news entries.If news file does not exist, use file from the initialNews directory in $I2P.Start/stop/delete plugins that are already installed Get properties of installed plugins Get or change settings in plugins.config.Stop all plugins that are installed and running.Start the router console.Alternative to ShellCommand for plugins based on ProcessBuilder, which manages a process and keeps track of it's state by maintaining a Process object.Form handler for the transport tuning page.Handles the request to update the router by firing one or moreEepGetcalls to download the latest signed update file and display the status to anyone who asks.Adds to the webapp classpath as specified inwebapps.config.Add, start or stop a webapp.Listen for events.