Class FileMeta
java.lang.Object
com.levigo.jadice.web.server.file.FileMeta
- Direct Known Subclasses:
ExportMeta
Class that holds metadata of some printed output stored in a file.
Instances will be registered in a
FileRepository in order to allow clients to download
the file.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicIntegerprotected final longprotected final Stringprotected final DownloadPurposeprotected final Fileprotected final intprotected final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
file
-
displayName
-
mimeType
-
downloadPurpose
-
maxAccessCount
protected final int maxAccessCount -
createdAt
protected final long createdAt -
accessCount
-
properties
-
-
Constructor Details
-
FileMeta
-
-
Method Details
-
getFile
-
getDownloadPurpose
-
getCreatedAt
public long getCreatedAt() -
getAccessCount
public int getAccessCount() -
incrementAccessCount
public void incrementAccessCount() -
getMaxAccessCount
public int getMaxAccessCount() -
getDisplayName
-
getMimeType
-
getProperties
-
toString
-
equals
Nobody cares about the other fields, only the underlying file is relevant! If two instances of this class have the same underlying file, we have a problem. -
hashCode
public int hashCode()
-