Package com.artipie.npm.proxy.http
Class NpmPath
- java.lang.Object
-
- com.artipie.npm.proxy.http.NpmPath
-
- Direct Known Subclasses:
AssetPath
,PackagePath
public abstract class NpmPath extends Object
Base path helper class NPM Proxy.- Since:
- 0.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Pattern
pattern()
Gets pattern to match handled paths.String
prefix()
Gets base path prefix.String
value(String abspath)
Gets relative path from absolute.
-
-
-
Constructor Detail
-
NpmPath
public NpmPath(String prefix)
Ctor.- Parameters:
prefix
- Base path prefix
-
-
Method Detail
-
value
public final String value(String abspath)
Gets relative path from absolute.- Parameters:
abspath
- Absolute path- Returns:
- Relative path
-
prefix
public final String prefix()
Gets base path prefix.- Returns:
- Bas path prefix
-
pattern
public abstract Pattern pattern()
Gets pattern to match handled paths.- Returns:
- Pattern to match handled paths
-
-