Class DownloadPackageSlice

  • All Implemented Interfaces:
    com.artipie.http.Slice

    public final class DownloadPackageSlice
    extends Object
    implements com.artipie.http.Slice
    Download package endpoint. Return package metadata, all tarball links will be rewritten based on requested URL.
    Since:
    0.6
    • Constructor Detail

      • DownloadPackageSlice

        public DownloadPackageSlice​(URL base,
                                    com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        base - Base URL
        storage - Abstract storage
    • Method Detail

      • response

        public com.artipie.http.Response response​(String line,
                                                  Iterable<Map.Entry<String,​String>> headers,
                                                  org.reactivestreams.Publisher<ByteBuffer> body)
        Specified by:
        response in interface com.artipie.http.Slice