Class ServerURI
- java.lang.Object
-
- jetbrains.buildServer.vcshostings.url.ServerURI
-
public class ServerURI extends Object
This class parses URI in formats using by TeamCity in defining VCS Root URL http(s) url format: http(s)://[user@]host[:port]{/path}[/] scp url formats (https://man.openbsd.org/scp): [user@]host:[path]{/path}[/] or scheme://[user@]host[:port]{/path}[/] also acceptable: scheme://[user@]host[:port](:)[path]{/path}[/] So in ssh://git@my.company.com:8111/owner/repo 8111 will be considered as port but in git@my.company.com:8111/owner/repo 8111 will be considered as part of the path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compareByHostAndPortTo(ServerURI uri)
boolean
compareByPathTo(ServerURI uri)
boolean
compareByPathTo(ServerURI uri, String acceptableSuffix)
List<String>
getClearPathFragmentsFromQueryAndSuffix(String suffix)
String
getHost()
String
getHttpBaseURL()
List<String>
getPathFragments()
String
getPort()
String
getScheme()
String
getUsername()
String
toString()
-
-
-
Method Detail
-
getScheme
@NotNull public String getScheme()
-
getUsername
@Nullable public String getUsername()
-
getHost
@NotNull public String getHost()
-
getPort
@Nullable public String getPort()
-
getClearPathFragmentsFromQueryAndSuffix
public List<String> getClearPathFragmentsFromQueryAndSuffix(@Nullable String suffix)
-
compareByPathTo
public boolean compareByPathTo(@Nullable ServerURI uri)
-
compareByPathTo
public boolean compareByPathTo(@Nullable ServerURI uri, @Nullable String acceptableSuffix)
-
compareByHostAndPortTo
public boolean compareByHostAndPortTo(@Nullable ServerURI uri)
-
getHttpBaseURL
@NotNull public String getHttpBaseURL()
-
-