| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | ABSOLUTE_SCP_URI
A pattern matching a SCP URI's of the form user@host:/path/to/repo.git |
| private static final Pattern | FULL_URI
A pattern matching standard URI:
|
| private String | |
| private static final String | HOST_P
Part of a pattern which matches the host part of URIs. |
| private static final Pattern | LOCAL_FILE
A pattern matching the reference to a local file. |
| private static final String | OPT_DRIVE_LETTER_P
Part of a pattern which matches the optional drive letter in paths (e.g. D: in file:///D:/a.txt). |
| private static final String | OPT_PORT_P
Part of a pattern which matches the optional port part of URIs. |
| private static final String | OPT_USER_PWD_P
Part of a pattern which matches the optional user/password part (e.g. root:pwd@ in git://root:[email protected]/a.git) of URIs. |
| private String | |
| private String | |
| private static final String | PATH_P
Part of a pattern which matches a relative or absolute path. |
| private int | |
| private String | |
| private static final String | RELATIVE_PATH_P
Part of a pattern which matches a relative path. |
| private static final Pattern | RELATIVE_SCP_URI
A pattern matching a SCP URI's of the form user@host:path/to/repo.git |
| private static final BitSet | |
| private String | |
| private static final String | SCHEME_P
Part of a pattern which matches the scheme part (git, http, ...) of an URI. |
| private static final long | |
| private static final Pattern | SINGLE_SLASH_FILE_URI
A pattern matching a URI for the scheme 'file' which has only ':/' as separator between scheme and path. |
| private String | |
| private static final String | USER_HOME_P
Part of a pattern which matches the ~username part (e.g. /~root in git://host.xyz/~root/a.git) of URIs. |
| Access | Constructor and Description |
|---|---|
| public | URIish(String
a s)java. object.Parse and construct an |
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private static boolean | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| private static String | |
| private String | |
| public String | |
| public String | Returns: the "humanish" part of the path. May be an empty string. Nevernull.Get the "humanish" part of the path. |
| public String | |
| public String | |
| public int | Returns: port number requested for transfer or -1 if not explicitGet port number requested for transfer or -1 if not explicit |
| public String | |
| public String | |
| public String | |
| public int | |
| public boolean | Returns: true if this URI references a repository on another system.Whether this URI references a repository on another system. |
| private String | |
| private static int | |
| public URIish | |
| public URIish | |
| public URIish | |
| public URIish | Returns: a new URI with the updated value.the new value for port. n)Return a new URI matching this one, but with a different port. |
| public URIish | Returns: a new URI with the updated value.the new value for path. n)Return a new URI matching this one, but with a different (raw) path. |
| public URIish | |
| public URIish | |
| public String | Returns: the URI as an ASCII string. Password is not included.Get the URI as an ASCII string. |
| public String | Returns: the URI including password, formatted with only ASCII characters such that it will be valid for use over the network.Convert the URI including password, formatted with only ASCII characters such that it will be valid for use over the network. |
| public String | Returns: the URI, including its password field, if any.Obtain the string form of the URI, with the password included. |
| public String | |
| private static String |
| ABSOLUTE_SCP_URI | back to summary |
|---|---|
| private static final Pattern ABSOLUTE_SCP_URI A pattern matching a SCP URI's of the form user@host:/path/to/repo.git | |
| FULL_URI | back to summary |
|---|---|
| private static final Pattern FULL_URI A pattern matching standard URI: | |
| host | back to summary |
|---|---|
| private String host | |
| HOST_P | back to summary |
|---|---|
| private static final String HOST_P Part of a pattern which matches the host part of URIs. Defines one capturing group containing the host name. | |
| LOCAL_FILE | back to summary |
|---|---|
| private static final Pattern LOCAL_FILE A pattern matching the reference to a local file. This may be an absolute path (maybe even containing windows drive-letters) or a relative path. | |
| OPT_DRIVE_LETTER_P | back to summary |
|---|---|
| private static final String OPT_DRIVE_LETTER_P Part of a pattern which matches the optional drive letter in paths (e.g. D: in file:///D:/a.txt). Defines no capturing group. | |
| OPT_PORT_P | back to summary |
|---|---|
| private static final String OPT_PORT_P Part of a pattern which matches the optional port part of URIs. Defines one capturing group containing the port without the preceding colon. | |
| OPT_USER_PWD_P | back to summary |
|---|---|
| private static final String OPT_USER_PWD_P Part of a pattern which matches the optional user/password part (e.g. root:pwd@ in git://root:[email protected]/a.git) of URIs. Defines two capturing groups: the first containing the user and the second containing the password | |
| pass | back to summary |
|---|---|
| private String pass | |
| path | back to summary |
|---|---|
| private String path | |
| PATH_P | back to summary |
|---|---|
| private static final String PATH_P Part of a pattern which matches a relative or absolute path. Defines no capturing group. | |
| port | back to summary |
|---|---|
| private int port | |
| rawPath | back to summary |
|---|---|
| private String rawPath | |
| RELATIVE_PATH_P | back to summary |
|---|---|
| private static final String RELATIVE_PATH_P Part of a pattern which matches a relative path. Relative paths don't start with slash or drive letters. Defines no capturing group. | |
| RELATIVE_SCP_URI | back to summary |
|---|---|
| private static final Pattern RELATIVE_SCP_URI A pattern matching a SCP URI's of the form user@host:path/to/repo.git | |
| reservedChars | back to summary |
|---|---|
| private static final BitSet reservedChars | |
| scheme | back to summary |
|---|---|
| private String scheme | |
| SCHEME_P | back to summary |
|---|---|
| private static final String SCHEME_P Part of a pattern which matches the scheme part (git, http, ...) of an URI. Defines one capturing group containing the scheme without the trailing colon and slashes | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SINGLE_SLASH_FILE_URI | back to summary |
|---|---|
| private static final Pattern SINGLE_SLASH_FILE_URI A pattern matching a URI for the scheme 'file' which has only ':/' as separator between scheme and path. Standard file URIs have '://' as separator, but java.io.File.toURI() constructs those URIs. | |
| user | back to summary |
|---|---|
| private String user | |
| USER_HOME_P | back to summary |
|---|---|
| private static final String USER_HOME_P Part of a pattern which matches the ~username part (e.g. /~root in git://host.xyz/~root/a.git) of URIs. Defines no capturing group. | |
| URIish | back to summary |
|---|---|
| public URIish(String s) throws URISyntaxException Parse and construct an
| |
| URIish | back to summary |
|---|---|
| public URIish(URL u) Construct a URIish from a standard URL.
| |
| URIish | back to summary |
|---|---|
| public URIish() Create an empty, non-configured URI. | |
| URIish | back to summary |
|---|---|
| private URIish(URIish u) | |
| cleanLeadingSlashes | back to summary |
|---|---|
| private String cleanLeadingSlashes(String p, String s) | |
| eq | back to summary |
|---|---|
| private static boolean eq(String a, String b) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| escape | back to summary |
|---|---|
| private static String escape(String s, boolean escapeReservedChars, boolean encodeNonAscii) Escape unprintable characters optionally URI-reserved characters | |
| format | back to summary |
|---|---|
| private String format(boolean includePassword, boolean escapeNonAscii) | |
| getHost | back to summary |
|---|---|
| public String getHost() Get host name part.
| |
| getHumanishName | back to summary | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String getHumanishName() throws IllegalArgumentException Get the "humanish" part of the path. Some examples of a 'humanish' part for a full path:
| ||||||||||||
| getPass | back to summary |
|---|---|
| public String getPass() Get password requested for transfer
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get path name component
| |
| getPort | back to summary |
|---|---|
| public int getPort() Get port number requested for transfer or -1 if not explicit
| |
| getRawPath | back to summary |
|---|---|
| public String getRawPath() Get path name component
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Get protocol name
| |
| getUser | back to summary |
|---|---|
| public String getUser() Get user name requested for transfer
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isRemote | back to summary |
|---|---|
| public boolean isRemote() Whether this URI references a repository on another system.
| |
| n2e | back to summary |
|---|---|
| private String n2e(String s) | |
| parseHexByte | back to summary |
|---|---|
| private static int parseHexByte(byte c1, byte c2) | |
| setHost | back to summary |
|---|---|
| public URIish setHost(String n) Return a new URI matching this one, but with a different host. | |
| setPass | back to summary |
|---|---|
| public URIish setPass(String n) Return a new URI matching this one, but with a different password. | |
| setPath | back to summary |
|---|---|
| public URIish setPath(String n) Return a new URI matching this one, but with a different path. | |
| setPort | back to summary |
|---|---|
| public URIish setPort(int n) Return a new URI matching this one, but with a different port.
| |
| setRawPath | back to summary |
|---|---|
| public URIish setRawPath(String n) throws URISyntaxException Return a new URI matching this one, but with a different (raw) path.
| |
| setScheme | back to summary |
|---|---|
| public URIish setScheme(String n) Return a new URI matching this one, but with a different scheme. | |
| setUser | back to summary |
|---|---|
| public URIish setUser(String n) Return a new URI matching this one, but with a different user. | |
| toASCIIString | back to summary |
|---|---|
| public String toASCIIString() Get the URI as an ASCII string.
| |
| toPrivateASCIIString | back to summary |
|---|---|
| public String toPrivateASCIIString() Convert the URI including password, formatted with only ASCII characters such that it will be valid for use over the network.
| |
| toPrivateString | back to summary |
|---|---|
| public String toPrivateString() Obtain the string form of the URI, with the password included.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unescape | back to summary |
|---|---|
| private static String unescape(String s) throws URISyntaxException | |