Class NpmAsset


  • public final class NpmAsset
    extends Object
    NPM Asset.
    Since:
    0.1
    • Constructor Detail

      • NpmAsset

        public NpmAsset​(String path,
                        org.reactivestreams.Publisher<ByteBuffer> content,
                        String modified,
                        String ctype)
        Ctor.
        Parameters:
        path - Asset path
        content - Reactive publisher for asset content
        modified - Last modified date
        ctype - Original content type
      • NpmAsset

        public NpmAsset​(String path,
                        org.reactivestreams.Publisher<ByteBuffer> content,
                        NpmAsset.Metadata metadata)
        Ctor.
        Parameters:
        path - Asset path
        content - Reactive publisher for asset content
        metadata - Asset metadata
    • Method Detail

      • path

        public String path()
        Return asset path.
        Returns:
        Asset path
      • dataPublisher

        public org.reactivestreams.Publisher<ByteBuffer> dataPublisher()
        Get reactive data publisher.
        Returns:
        Data publisher