Class PackageMetadataSlice

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

    public final class PackageMetadataSlice
    extends Object
    implements com.artipie.http.Slice
    Slice that serves package metadata.
    Since:
    0.3
    • Field Detail

      • PACKAGE

        public static final Pattern PACKAGE
        RegEx pattern for package metadata path.
      • ALL_PACKAGES

        public static final Pattern ALL_PACKAGES
        RegEx pattern for all packages metadata path.
    • Constructor Detail

      • PackageMetadataSlice

        public PackageMetadataSlice​(Repository repository)
        Ctor.
        Parameters:
        repository - Repository.
    • 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