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

public class WizardHandlerextends FormHandler
The new user wizard.

This handler has request scope (as all FormHandlers must), so it controls the test via the helper, which has session scope.

  • Field Details

    • _helper

      private WizardHelper _helper
      Holds the wizard's state between requests.
  • Constructor Details

  • Method Details

    • setWizardHelper

      public void setWizardHelper(WizardHelper helper)
      Bind the helper (scope session) to this handler (scope request).
      Parameters:
      helper - session-scoped WizardHelper holding the wizard state this request handler drives
    • 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
    • updateRates

      private boolean updateRates(Map<String,String> changes)
      Modified from ConfigNetHandler.
      Parameters:
      changes - the map of config key-value pairs to be saved; each rate setting that changed is added to it
      Returns:
      true if any bandwidth, share or burst setting was written
    • startNDT

      private void startNDT()
      Start the test.
    • cancelNDT

      private void cancelNDT()
      Cancel the test.