Class 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 Detail

      • PackagePath

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

      • 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