java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.ConfigStatsHandler

public class ConfigStatsHandlerextends FormHandler
Handler to deal with form submissions from the stats config form and act upon the values.
  • Field Details

    • _graphs

      private String _graphs
      The graphs the page asks for.
    • _isFull

      private boolean _isFull
      Set when the full version of the page is shown.
  • Constructor Details

    • ConfigStatsHandler

      public ConfigStatsHandler()
      ConfigStatsHandler default constructor.
  • Method Details

    • processForm

      protected void processForm()
      Description copied from class: FormHandler
      Implement this to perform the final processing (in turn, adding formNotice and formError messages, etc)

      Will only be called if _action is non-null and the nonce is valid.

      Specified by:
      processForm in class FormHandler
    • setGraphList

      public void setGraphList(String[] stats)
      Records the stat names to graph, as a comma-separated list.
      Parameters:
      stats - the stat names to graph
    • setIsFull

      public void setIsFull(String foo)
      Turns on full statistics collection; the argument is the form's checkbox value.
      Parameters:
      foo - the form's checkbox value; only its presence matters here
    • saveChanges

      private void saveChanges()
      The user made changes to the config and wants to save them, so lets go ahead and do so.