Class NetDbHelper

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

public class NetDbHelper extends FormHandler
/netdb A FormHandler since 0.9.38. Most output is generated in NetDbRenderer and SybilRender.
  • Constructor Details

    • NetDbHelper

      public NetDbHelper()
  • Method Details

    • setRouter

      public void setRouter(String r)
    • setVersion

      public void setVersion(String v)
      Since:
      0.9.21
    • setCountry

      public void setCountry(String c)
      Since:
      0.9.21
    • setFamily

      public void setFamily(String c)
      Since:
      0.9.28
    • setCaps

      public void setCaps(String c)
      Since:
      0.9.28
    • setIp

      public void setIp(String c)
      Since:
      0.9.28
    • setSybil

      public void setSybil(String c)
      Since:
      0.9.28
    • setSybil2

      public void setSybil2(String c)
      For form, same as above but with a length check
      Since:
      0.9.28
    • setPort

      public void setPort(String f)
      Since:
      0.9.28
    • setType

      public void setType(String f)
      Since:
      0.9.28
    • setEtype

      public void setEtype(String f)
      Since:
      0.9.49
    • setMtu

      public void setMtu(String f)
      Since:
      0.9.28
    • setIpv6

      public void setIpv6(String f)
      Since:
      0.9.28
    • setSsucaps

      public void setSsucaps(String f)
      Since:
      0.9.28
    • setTransport

      public void setTransport(String f)
      Since:
      0.9.36
    • setCost

      public void setCost(String f)
      Since:
      0.9.28
    • setMode

      public void setMode(String f)
      Since:
      0.9.38
    • setDate

      public void setDate(String f)
      Since:
      0.9.38
    • setFull

      public void setFull(String f)
    • setLease

      public void setLease(String l)
    • setLeaseset

      public void setLeaseset(String f)
      Since:
      0.9.57
    • setLimit

      public void setLimit(String f)
      Since:
      0.9.36
    • setPage

      public void setPage(String f)
      Since:
      0.9.36
    • allowGraphical

      public void allowGraphical()
      call for non-text-mode browsers
      Since:
      0.9.1
    • getNewNonce

      public String getNewNonce()
      Override to save it
      Overrides:
      getNewNonce in class FormHandler
      Returns:
      a new random long as a String
      Since:
      0.9.38
    • processForm

      protected void processForm()
      Now we're a FormHandler
      Specified by:
      processForm in class FormHandler
      Since:
      0.9.38
    • getNetDbSummary

      public String getNetDbSummary()
      storeWriter() must be called previously