Package com.artipie.npm.proxy.model
Class NpmAsset
- java.lang.Object
-
- com.artipie.npm.proxy.model.NpmAsset
-
public final class NpmAsset extends Object
NPM Asset.- Since:
- 0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NpmAsset.Metadata
NPM asset metadata.
-
Constructor Summary
Constructors Constructor Description NpmAsset(String path, org.reactivestreams.Publisher<ByteBuffer> content, NpmAsset.Metadata metadata)
Ctor.NpmAsset(String path, org.reactivestreams.Publisher<ByteBuffer> content, String modified, String ctype)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<ByteBuffer>
dataPublisher()
Get reactive data publisher.NpmAsset.Metadata
meta()
Get asset metadata.String
path()
Return asset path.
-
-
-
Constructor Detail
-
NpmAsset
public NpmAsset(String path, org.reactivestreams.Publisher<ByteBuffer> content, String modified, String ctype)
Ctor.- Parameters:
path
- Asset pathcontent
- Reactive publisher for asset contentmodified
- Last modified datectype
- Original content type
-
NpmAsset
public NpmAsset(String path, org.reactivestreams.Publisher<ByteBuffer> content, NpmAsset.Metadata metadata)
Ctor.- Parameters:
path
- Asset pathcontent
- Reactive publisher for asset contentmetadata
- 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
-
meta
public NpmAsset.Metadata meta()
Get asset metadata.- Returns:
- Asset metadata
-
-