Class NetDbRenderer

java.lang.Object
net.i2p.router.web.helpers.NetDbRenderer

class NetDbRenderer extends Object
  • Constructor Details

  • Method Details

    • renderRouterInfoHTML

      public void renderRouterInfoHTML(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, int highPort, SigType type, EncType etype, String mtu, String ipv6, String ssucaps, String tr, int cost, int icount) throws IOException
      At least one String must be non-null, non-empty
      Parameters:
      page - zero-based
      routerPrefix - may be null. "." for our router only
      version - may be null
      country - may be null
      family - may be null
      highPort - if nonzero, a range from port to highPort inclusive
      Throws:
      IOException
    • renderLeaseSetHTML

      public void renderLeaseSetHTML(Writer out, boolean debug, Hash client) throws IOException
      All the leasesets
      Parameters:
      debug - @since 0.7.14 sort by distance from us, display median distance, and other stuff, useful when floodfill
      client - null for main db; non-null for client db
      Throws:
      IOException
    • renderLeaseSet

      public void renderLeaseSet(Writer out, String hostname, boolean debug) throws IOException
      Single LeaseSet
      Throws:
      IOException
      Since:
      0.9.57
    • renderStatusHTML

      public void renderStatusHTML(Writer out, int pageSize, int page, int mode) throws IOException
      Parameters:
      mode - 0: charts only; 1: full routerinfos; 2: abbreviated routerinfos mode 3: Same as 0 but sort countries by count
      Throws:
      IOException