java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.SAMDebugHelper

public class SAMDebugHelperextends HelperBase
Helper for the /samdebug page - shows SAM bridge status with rings and a session table. The page is accessible from the Debug tab when the SAM bridge is running.
  • Constructor Details

    • SAMDebugHelper

      public SAMDebugHelper()
      Explicit no-arg constructor, as the console requires.
  • Method Details

    • getSAMDHelper

      public String getSAMDHelper()
      Render the full SAM debug page content (rings + session table).
      Returns:
      the rendered html, or an empty string when writing to a writer
    • renderSAMD

      private void renderSAMD(Writer out) throws IOException
      Writes the SAM debug page's table of current connections.
      Parameters:
      out - where the page is written
      Throws:
      IOException - if the writer fails
    • getBridge

      private SAMBridge getBridge()
      Get the SAM bridge instance if running.
      Returns:
      the SAMBridge instance, or null if not running