Class RepositoryUri
java.lang.Object
com.linecorp.centraldogma.server.mirror.RepositoryUri
A parsed representation of a repository URI used for mirroring.
-
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the branch name in the repository.booleaninthashCode()static RepositoryUriParses the specified 'remoteUri' into: - the actual remote repository URI - the path in the remote repository - the branch name.path()Returns the path in the repository.toString()uri()Returns the URI of the repository.
-
Method Details
-
parse
Parses the specified 'remoteUri' into: - the actual remote repository URI - the path in the remote repository - the branch name.e.g. git+ssh://foo.com/bar.git/some-path#master is split into: - remoteRepoUri: git+ssh://foo.com/bar.git - remotePath: /some-path/ - remoteBranch: master
e.g. dogma://foo.com/bar/qux.dogma is split into: - remoteRepoUri: dogma://foo.com/bar/qux.dogma - remotePath: / (default) - remoteBranch:
defaultBranch -
uri
Returns the URI of the repository. -
path
Returns the path in the repository. -
branch
Returns the branch name in the repository. -
equals
-
hashCode
-
toString
-