java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.CreateAnnounceListResult
- Enclosing class:
I2PSnarkServlet
Result of building the announce list. Package-visible for testing.
Field Summary
FieldsModifier and TypeFieldDescriptionTiers of announce URLs, null if the announce list could not be built.(package private) final StringHuman-readable failure reason; null if valid.(package private) final booleanThe primary tracker is private rather than open.Constructor Summary
ConstructorsConstructorDescriptionCreateAnnounceListResult(List<List<String>> announceList, boolean isPrivate, String errorMessage) Records the tiered announce list, or why it could not be built.Method Summary
All MethodsModifier and TypeMethodDescription(package private) booleanisValid()Tells whether the announce list could be built.
Field Details
announceList
isPrivate
final boolean isPrivateThe primary tracker is private rather than open.errorMessage
Human-readable failure reason; null if valid.
Constructor Details
CreateAnnounceListResult
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 builtisPrivate- the primary tracker is private rather than openerrorMessage- 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