Package org.artifactory.repo
Class RepoPathFactory
java.lang.Object
org.artifactory.repo.RepoPathFactory
A factory for creating RepoPath objects.
Has runtime dependency on the core.
- Author:
- Yoav Landman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RepoPathConstructs a RepoPath from a path containing both repo key and the relative path in the repo.static RepoPathConstructs a RepoPath from the input repo key and optional path.static RepoPathConstructs a RepoPath from the input repo key, path, and name.
-
Constructor Details
-
RepoPathFactory
public RepoPathFactory()
-
-
Method Details
-
create
Constructs a RepoPath from the input repo key and optional path. Paths that end with slash ('/') are considered as paths pointing to folder (RepoPath.isFolder()will return true)- Parameters:
repoKey- The key of any repopath- The relative path inside the repo (empty for root repo path)
-
create
Constructs a RepoPath from the input repo key, path, and name.If the path is "." (current directory), the RepoPath is constructed using only the name. Otherwise, the path and name are combined with a '/' separator to form the full path. Paths that end with slash ('/') are considered as paths pointing to folder (
RepoPath.isFolder()will return true)- Parameters:
repoKey- The key of any repopath- The relative path inside the repo (use "." for root-level items)name- The name of the file or folder- Returns:
- A RepoPath constructed from the given parameters
-
create
Constructs a RepoPath from a path containing both repo key and the relative path in the repo. Paths that end with slash ('/') are considered as paths pointing to folder (RepoPath.isFolder()will return true)- Parameters:
rpp- - {repoKey}/{itemRelativePath}- Returns:
- Matching repo path
-