Class NpmSlice

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

    public final class NpmSlice
    extends Object
    implements com.artipie.http.Slice
    NpmSlice is a http layer in npm adapter.
    Since:
    0.3
    • Constructor Detail

      • NpmSlice

        public NpmSlice​(URL base,
                        com.artipie.asto.Storage storage)
        Ctor with existing front and default parameters for free access.
        Parameters:
        base - Base URL.
        storage - Storage for package
      • NpmSlice

        public NpmSlice​(URL base,
                        Npm npm,
                        com.artipie.asto.Storage storage)
        Ctor with existing front and default parameters for free access.
        Parameters:
        base - Base URL.
        npm - Npm existing front
        storage - Storage for package
      • NpmSlice

        public NpmSlice​(URL base,
                        Npm npm,
                        com.artipie.asto.Storage storage,
                        com.artipie.http.auth.Permissions perms,
                        com.artipie.http.auth.Authentication auth)
        Ctor.
        Parameters:
        base - Base URL.
        npm - Npm front.
        storage - Storage for package.
        perms - Access permissions.
        auth - Authentication.
    • 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