Package com.artipie.npm
Class Tarballs
- java.lang.Object
-
- com.artipie.npm.Tarballs
-
public final class Tarballs extends Object
Prepends all tarball references in the package metadata json with the prefix to build absolute URL: /@scope/package-name -> http://host:port/base-path/@scope/package-name.- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.artipie.asto.Content
value()
Return modified content with prepended URLs.
-
-
-
Constructor Detail
-
Tarballs
public Tarballs(com.artipie.asto.Content original, URL prefix)
Ctor.- Parameters:
original
- Original contentprefix
- URL prefix
-
-