Class WizardHelper

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

public class WizardHelper extends HelperBase
The new user wizard. This bean has SESSION scope so the results may be retrieved. All necessary methods are synchronized.
Since:
0.9.38
  • Field Details

  • Constructor Details

    • WizardHelper

      public WizardHelper()
  • Method Details

    • setContextId

      public void setContextId(String contextId)
      Overriden to only do this once.
      Overrides:
      setContextId in class HelperBase
      Parameters:
      contextId - beginning few characters of the routerHash, or null to pick the first one we come across.
    • complete

      public void complete()
    • isNDTComplete

      public boolean isNDTComplete()
    • isNDTRunning

      public boolean isNDTRunning()
    • isNDTSuccessful

      public boolean isNDTSuccessful()
    • getTestStatus

      public String getTestStatus()
      Returns:
      HTML-escaped status string or ""
    • getCompletionStatus

      public String getCompletionStatus()
      Returns:
      HTML-escaped status string or ""
    • getDetailStatus

      public String getDetailStatus()
      Returns:
      HTML-escaped status string or ""
    • getUpBandwidth

      public long getUpBandwidth()
      Returns:
      bytes per second or 0
    • getDownBandwidth

      public long getDownBandwidth()
      Returns:
      bytes per second or 0
    • getServerLocation

      public String getServerLocation()
      Returns:
      HTML-escaped location or ""
    • getInboundBurstRate

      public String getInboundBurstRate()
      To populate form with. Uses the test result if available, else the current setting Adapted from ConfigNetHelper.
      Returns:
      decimal KBytes/sec
    • getOutboundBurstRate

      public String getOutboundBurstRate()
      To populate form with. Uses the test result if available, else the current setting Adapted from ConfigNetHelper.
      Returns:
      decimal KBytes/sec
    • getInboundBurstRateBits

      public String getInboundBurstRateBits()
      Copied from ConfigNetHelper.
      Returns:
      decimal
    • getOutboundBurstRateBits

      public String getOutboundBurstRateBits()
      Copied from ConfigNetHelper.
      Returns:
      decimal
    • getShareRateBits

      public String getShareRateBits()
      Copied from ConfigNetHelper.
      Returns:
      decimal
    • getShareBandwidth

      public int getShareBandwidth()
      Adapted from ConfigNetHelper.
      Returns:
      in binary KBytes per second
    • startNDT

      boolean startNDT()
      Start the test. Called from the Handler.
      Returns:
      success
    • cancelNDT

      boolean cancelNDT()
      Cancel the test. Called from the Handler.
      Returns:
      success