Package com.artipie.files
Class ListBlobsSlice
java.lang.Object
com.artipie.files.ListBlobsSlice
- All Implemented Interfaces:
com.artipie.http.Slice
This slice lists blobs contained in given path.
It formats response content according to Function
formatter.
It also converts URI path to storage Key
and use it to access storage.
- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.artipie.http.Slice
com.artipie.http.Slice.Wrap
-
Constructor Summary
ConstructorDescriptionListBlobsSlice
(Storage storage, com.artipie.files.BlobListFormat format, String mtype) Slice by key from storage.ListBlobsSlice
(Storage storage, com.artipie.files.BlobListFormat format, String mtype, Function<String, Key> transform) Slice by key from storage using custom URI path transformation. -
Method Summary
-
Constructor Details
-
ListBlobsSlice
Slice by key from storage.- Parameters:
storage
- Storageformat
- Blob list formatmtype
- Mime type
-
ListBlobsSlice
public ListBlobsSlice(Storage storage, com.artipie.files.BlobListFormat format, String mtype, Function<String, Key> transform) Slice by key from storage using custom URI path transformation.- Parameters:
storage
- Storageformat
- Blob list formatmtype
- Mime typetransform
- Transformation
-
-
Method Details