Package net.i2p.router.web


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.

This package was split in release 0.9.33, with most of the helpers and handlers moved to net.i2p.router.web.helpers, and moving them from routerconsole.jar to routerconsole.war.

No classes contained here are part of a public API. Subject to change. Not for public use.

  • Classes
    Class
    Description
     
    Handler to deal with form submissions from the service config form and act upon the values.
     
     
    Manage both plaintext and salted/hashed password storage in router.config.
     
     
    Copied and modded from I2PTunnel IndexBean (GPL)
    Periodic check ref: https://dzone.com/articles/how-detect-java-deadlocks In routerconsole because java.lang.management is not available in Android.
    Simple form handler base class - does not depend on servlets or jsp, but instead the subclasses are populated with javabean properties.
    Basic graph defaults
    Base helper
    Block certain Host headers to prevent DNS rebinding attacks.
    Convert foo.jsp to foo_xx.jsp for language xx.
    Translate strings for this package.
     
    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.
    A thread started by RouterConsoleRunner that checks the configuration for stats to be tracked via jrobin, and adds or deletes RRDs as necessary.
    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.
    Handles the request to update the router by firing one or more EepGet calls to download the latest signed update file and displaying the status to anyone who asks.
    Add to the webapp classpath as specified in webapps.config.
    Add, start or stop a webapp.
    Listen for events.