Class LocalIndexFile
- java.lang.Object
-
- app.coronawarn.server.services.distribution.objectstore.publish.LocalFile
-
- app.coronawarn.server.services.distribution.objectstore.publish.LocalIndexFile
-
public class LocalIndexFile extends LocalFile
Represents a file of a specific category: Index files.
Index files contain information about the available packages on the S3, which makes discovery of those files easier for the consumers. Index files are assembled with the name "index", but should be published on S3 w/o the index part, to make e.g.:
/diagnosis-keys/date/2020-12-12/index is published to /diagnosis-keys/date/2020-12-12
-
-
Constructor Summary
Constructors Constructor Description LocalIndexFile(Path file, Path basePath)
Constructs a new file, which is treated as an index file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createS3Key(Path file, Path rootFolder)
-
Methods inherited from class app.coronawarn.server.services.distribution.objectstore.publish.LocalFile
getChecksum, getContentType, getFile, getS3Key
-
-
-
-
Method Detail
-
createS3Key
protected String createS3Key(Path file, Path rootFolder)
- Overrides:
createS3Key
in classLocalFile
-
-