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

static class I2PSnarkServlet.EditParamsextends Object
Parsed edit form parameters. Package-visible for testing.
  • Field Details

    • toAdd

      final List<Integer> toAdd
      Hash codes of tracker URLs to add.
    • toDel

      final List<Integer> toDel
      Hash codes of tracker URLs to remove.
    • primary

      final Integer primary
      Hash code of the announce URL to promote to primary, null if unchanged.
    • newComment

      final String newComment
      Replacement torrent comment, empty if unchanged.
    • newCreatedBy

      final String newCreatedBy
      Replacement createdBy value, empty if unchanged.
  • Constructor Details

    • EditParams

      EditParams(List<Integer> toAdd, List<Integer> toDel, Integer primary, String newComment, String newCreatedBy)
      Captures the tracker and metadata changes submitted on the edit form.
      Parameters:
      toAdd - hash codes of tracker URLs to add
      toDel - hash codes of tracker URLs to remove
      primary - hash code of the announce URL to promote, null if unchanged
      newComment - replacement torrent comment, empty if unchanged
      newCreatedBy - replacement createdBy value, empty if unchanged