|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.transport.URIish
public class URIish
This URI like construct used for referencing Git archives over the net, as well as locally stored archives. The most important difference compared to RFC 2396 URI's is that no URI encoding/decoding ever takes place. A space or any special character is written as-is.
Constructor Summary | |
---|---|
URIish()
Create an empty, non-configured URI. |
|
URIish(java.lang.String s)
Parse and construct an URIish from a string |
|
URIish(java.net.URL u)
Construct a URIish from a standard URL. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHost()
|
java.lang.String |
getHumanishName()
Get the "humanish" part of the path. |
java.lang.String |
getPass()
|
java.lang.String |
getPath()
|
int |
getPort()
|
java.lang.String |
getScheme()
|
java.lang.String |
getUser()
|
int |
hashCode()
|
boolean |
isRemote()
|
URIish |
setHost(java.lang.String n)
Return a new URI matching this one, but with a different host. |
URIish |
setPass(java.lang.String n)
Return a new URI matching this one, but with a different password. |
URIish |
setPath(java.lang.String n)
Return a new URI matching this one, but with a different path. |
URIish |
setPort(int n)
Return a new URI matching this one, but with a different port. |
URIish |
setScheme(java.lang.String n)
Return a new URI matching this one, but with a different scheme. |
URIish |
setUser(java.lang.String n)
Return a new URI matching this one, but with a different user. |
java.lang.String |
toPrivateString()
Obtain the string form of the URI, with the password included. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URIish(java.lang.String s) throws java.net.URISyntaxException
URIish
from a string
s
-
java.net.URISyntaxException
public URIish(java.net.URL u)
u
- the source URL to convert from.public URIish()
Method Detail |
---|
public boolean isRemote()
public java.lang.String getHost()
public URIish setHost(java.lang.String n)
n
- the new value for host.
public java.lang.String getScheme()
public URIish setScheme(java.lang.String n)
n
- the new value for scheme.
public java.lang.String getPath()
public URIish setPath(java.lang.String n)
n
- the new value for path.
public java.lang.String getUser()
public URIish setUser(java.lang.String n)
n
- the new value for user.
public java.lang.String getPass()
public URIish setPass(java.lang.String n)
n
- the new value for password.
public int getPort()
public URIish setPort(int n)
n
- the new value for port.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toPrivateString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getHumanishName() throws java.lang.IllegalArgumentException
Path | Humanish part |
---|---|
/path/to/repo.git |
repo |
/path/to/repo.git/ |
|
/path/to/repo/.git |
|
/path/to/repo/ |
|
/path//to |
an empty string |
null
.
java.lang.IllegalArgumentException
- if it's impossible to determine a humanish part, or path is
null
or emptygetPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |