Package com.artipie.npm.proxy.http
Class PackagePath
- java.lang.Object
-
- com.artipie.npm.proxy.http.NpmPath
-
- com.artipie.npm.proxy.http.PackagePath
-
public final class PackagePath extends NpmPath
Package path helper. Artipie maps concrete repositories on the path prefixes in the URL. This class provides the way to match package requests with prefixes correctly. Also, it allows to get relative path for using with the Storage instances.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description PackagePath(String prefix)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
pattern()
Gets pattern to match handled paths.
-
-
-
Constructor Detail
-
PackagePath
public PackagePath(String prefix)
Ctor.- Parameters:
prefix
- Base prefix path
-
-