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

public class ConfigAdvancedHelperextends HelperBase
Helper for advanced configuration page rendering and form processing. Organizes router configuration properties by category, hides sensitive settings, and provides structured display of advanced router options.
  • Field Details

    • PROP_FLOODFILL_PARTICIPANT

      static final String PROP_FLOODFILL_PARTICIPANT
      The floodfill configuration property.
      See Also:
    • PROP_AUTH_PFX

      private static final String PROP_AUTH_PFX
      Prefix of the per-user authentication properties.
      See Also:
    • _hideKeys

      private static final Set<String> _hideKeys
      Properties never shown on the page.
    • _headers

      private static final Map<String,String> _headers
      Property key to the heading shown above it.
  • Constructor Details

    • ConfigAdvancedHelper

      public ConfigAdvancedHelper()
      Constructs the helper.
  • Method Details

    • getSettings

      public String getSettings()
      Get the formatted settings HTML.
      Returns:
      the settings as HTML
    • getConfigFileName

      public String getConfigFileName()
      Get the path to the router config file.
      Returns:
      the config file path
    • getFFChecked

      public String getFFChecked(int mode)
      Get the checked attribute for floodfill radio buttons.
      Parameters:
      mode - 0=disabled, 1=enabled, 2=auto
      Returns:
      CHECKED if the mode matches the current setting
    • isFloodfill

      public boolean isFloodfill()
      Whether the router is currently acting as a floodfill.
      Returns:
      true if floodfill is enabled