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 Details

    • PackagePath

      public PackagePath(String prefix)
      Ctor.
      Parameters:
      prefix - Base prefix path
  • Method Details

    • pattern

      public Pattern pattern()
      Description copied from class: NpmPath
      Gets pattern to match handled paths.
      Specified by:
      pattern in class NpmPath
      Returns:
      Pattern to match handled paths