Class LocalFile
- java.lang.Object
-
- app.coronawarn.server.services.distribution.objectstore.publish.LocalFile
-
- Direct Known Subclasses:
LocalGenericFile
,LocalIndexFile
public abstract class LocalFile extends Object
Represents a file, which is subject for publishing to S3.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createS3Key(Path file, Path rootFolder)
String
getChecksum()
String
getContentType()
Value for thecontent-type
header.Path
getFile()
String
getS3Key()
boolean
isKeyFile()
Indicates if a local file is a Key-file or not.
-
-
-
Method Detail
-
getS3Key
public String getS3Key()
-
getChecksum
public String getChecksum()
-
getFile
public Path getFile()
-
getContentType
public String getContentType()
Value for thecontent-type
header.
-
isKeyFile
public boolean isKeyFile()
Indicates if a local file is a Key-file or not. Only the Key files are stored in the Date / Hour tree structure. One file per sub-folder (days: 1-31 / hours: 0-23). The index files are not stored in folders ending with a digit.- Returns:
true
if and only if thes3Key
ends with a digit, false otherwise.
-
-