Class ListBlobsSlice

java.lang.Object
com.artipie.files.ListBlobsSlice
All Implemented Interfaces:
com.artipie.http.Slice

public final class ListBlobsSlice extends Object implements 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
  • Constructor Details

    • ListBlobsSlice

      public ListBlobsSlice(Storage storage, com.artipie.files.BlobListFormat format, String mtype)
      Slice by key from storage.
      Parameters:
      storage - Storage
      format - Blob list format
      mtype - 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 - Storage
      format - Blob list format
      mtype - Mime type
      transform - Transformation
  • Method Details