| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final char | |
| private String | |
| private int | |
| public static final String | |
| private static final long | |
| private String | |
| public static final char |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ScpLocation | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public int | |
| public String | |
| public int | |
| public boolean | |
| public static ScpLocation | |
| public int | |
| public String | Returns: The resolved usernameResolves the effective username to use for a remote location. |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public static < Type of L extends ScpLocation> LScpLocation being updated | Returns: The updated location (unless no specification)The location specification - ignored if spec, L null/emptyThe location)ScpLocation to update - never nullParses a local or remote SCP location in the format "user@host:path" or "scp://[user@]host[:port][/path]" |
| host | back to summary |
|---|---|
| private String host | |
| HOST_PART_SEPARATOR | back to summary |
|---|---|
| public static final char HOST_PART_SEPARATOR | |
| path | back to summary |
|---|---|
| private String path | |
| port | back to summary |
|---|---|
| private int port | |
| SCHEME | back to summary |
|---|---|
| public static final String SCHEME | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| username | back to summary |
|---|---|
| private String username | |
| USERNAME_PART_SEPARATOR | back to summary |
|---|---|
| public static final char USERNAME_PART_SEPARATOR | |
| ScpLocation | back to summary |
|---|---|
| public ScpLocation() | |
| ScpLocation | back to summary |
|---|---|
public ScpLocation(String locSpec)
| |
| ScpLocation | back to summary |
|---|---|
| public ScpLocation(String username, String host, String path) | |
| ScpLocation | back to summary |
|---|---|
| public ScpLocation(String username, String host, int port, String path) | |
| clone | back to summary |
|---|---|
| public ScpLocation clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| 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. | |
| getHost | back to summary |
|---|---|
| public String getHost() | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| getUsername | back to summary |
|---|---|
| public String getUsername() Implements org.
| |
| 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
| |
| isLocal | back to summary |
|---|---|
| public boolean isLocal() | |
| parse | back to summary |
|---|---|
| public static ScpLocation parse(String locSpec) Parses a local or remote SCP location in the format "user@host:path" or "scp://[user@]host[:port][/path]"
| |
| resolvePort | back to summary |
|---|---|
| public int resolvePort() | |
| resolveUsername | back to summary |
|---|---|
| public String resolveUsername() Resolves the effective username to use for a remote location. If username not set then uses the current username
| |
| setHost | back to summary |
|---|---|
| public void setHost(String host) | |
| setPath | back to summary |
|---|---|
| public void setPath(String path) | |
| setPort | back to summary |
|---|---|
| public void setPort(int port) | |
| setUsername | back to summary |
|---|---|
| public void setUsername(String username) Implements org.
| |
| 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- | |
| update | back to summary |
|---|---|
| public static <L extends ScpLocation> L update(String spec, L location) Parses a local or remote SCP location in the format "user@host:path" or "scp://[user@]host[:port][/path]"
| |