Class AssetPath

java.lang.Object
com.artipie.npm.proxy.http.NpmPath
com.artipie.npm.proxy.http.AssetPath

public final class AssetPath extends NpmPath
Asset path helper. Artipie maps concrete repositories on the path prefixes in the URL. This class provides the way to match asset requests with prefixes correctly. Also, it allows to get relative asset path for using with the Storage instances.
Since:
0.1
  • Constructor Details

    • AssetPath

      public AssetPath(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