java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.FileRowContext
- Enclosing class:
I2PSnarkServlet
Immutable context for rendering a single file row in the torrent file browser. Package-visible for testing.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final StringDecoded base URL of the directory being listed.(package private) final booleanListing is at the torrent root, so no parent link is rendered.(package private) final booleanPriority controls are shown for this directory.(package private) final StorageThe torrent's storage, null for magnet links.Constructor Summary
ConstructorsConstructorDescriptionFileRowContext(String decodedBase, Storage storage, boolean showPriority, boolean isTopLevel) Captures the torrent state needed to render one file row.Method Summary
Field Details
decodedBase
Decoded base URL of the directory being listed.storage
The torrent's storage, null for magnet links.showPriority
final boolean showPriorityPriority controls are shown for this directory.isTopLevel
final boolean isTopLevelListing is at the torrent root, so no parent link is rendered.
Constructor Details
FileRowContext
Captures the torrent state needed to render one file row.- Parameters:
decodedBase- decoded base URL of the directory being listedstorage- the torrent's storage, null for magnet linksshowPriority- priority controls are shown for this directoryisTopLevel- listing is at the torrent root, so no parent link is rendered