|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.libs.git.GitURI
public final class GitURI
Representation of a supported Git URI, that denotes a remote repository and is used mainly in Git commands connecting to remote repositories. An instance of this class is immutable meaning any setter method constructs a new instance but does not modify the original instance.
| Constructor Summary | |
|---|---|
GitURI(String uriString)
Constructor creating an instance of a Git URI. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getHost()
Returns the URI's host. |
String |
getPass()
Returns the password part of the URI's credentials part. |
String |
getPath()
Returns the path on the host to the resource denoted by the URI. |
int |
getPort()
Returns the port number specified by the URI. |
String |
getScheme()
Returns the URI's scheme as a string. |
String |
getUser()
Returns the username part of the URI's credentials part. |
int |
hashCode()
|
boolean |
isRemote()
Returns true if this URI references a repository on another system. |
GitURI |
setHost(String host)
Creates a new instance with the given new host name. |
GitURI |
setPass(String password)
Creates a new instance with the given new password. |
GitURI |
setPath(String path)
Constructs a new instance with the given path. |
GitURI |
setPort(int port)
Constructs a new instance with the given port number. |
GitURI |
setScheme(String scheme)
Constructs a new instance with the given user name. |
GitURI |
setUser(String user)
Constructs a new instance with the given user name. |
String |
toPrivateString()
Returns string representation that contains also username and password as plaintext. |
String |
toString()
Returns string representation if the URI without the credentials part |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GitURI(String uriString)
throws URISyntaxException
uriString - string representation of a Git URI.
URISyntaxException - if the given string has unsupported format| Method Detail |
|---|
public String toPrivateString()
public GitURI setUser(String user)
user - user name
public GitURI setScheme(String scheme)
scheme - new scheme
public GitURI setPort(int port)
port - port number
public GitURI setPath(String path)
path - path to a resource
public GitURI setPass(String password)
password - new password
public GitURI setHost(String host)
host - new host name
public boolean isRemote()
true if this URI references a repository on another system.
public String getUser()
public String getScheme()
public int getPort()
public String getPath()
public String getPass()
public String getHost()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||