java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.CreateAnnounceListResult
Enclosing class:
I2PSnarkServlet

static class I2PSnarkServlet.CreateAnnounceListResultextends Object
Result of building the announce list. Package-visible for testing.
  • Field Details

    • announceList

      final List<List<String>> announceList
      Tiers of announce URLs, null if the announce list could not be built.
    • isPrivate

      final boolean isPrivate
      The primary tracker is private rather than open.
    • errorMessage

      final String errorMessage
      Human-readable failure reason; null if valid.
  • Constructor Details

    • CreateAnnounceListResult

      CreateAnnounceListResult(List<List<String>> announceList, boolean isPrivate, String errorMessage)
      Records the tiered announce list, or why it could not be built.
      Parameters:
      announceList - tiers of announce URLs, null if the list could not be built
      isPrivate - the primary tracker is private rather than open
      errorMessage - human-readable failure reason, null if valid
  • Method Details

    • isValid

      boolean isValid()
      Tells whether the announce list could be built.
      Returns:
      true if no error message was recorded