|
||||||||||
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(String s)
Parse and construct an URIish from a string |
|
URIish(URL u)
Construct a URIish from a standard URL. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getHost()
|
String |
getHumanishName()
Get the "humanish" part of the path. |
String |
getPass()
|
String |
getPath()
|
int |
getPort()
|
String |
getScheme()
|
String |
getUser()
|
int |
hashCode()
|
boolean |
isRemote()
|
URIish |
setHost(String n)
Return a new URI matching this one, but with a different host. |
URIish |
setPass(String n)
Return a new URI matching this one, but with a different password. |
URIish |
setPath(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(String n)
Return a new URI matching this one, but with a different scheme. |
URIish |
setUser(String n)
Return a new URI matching this one, but with a different user. |
String |
toPrivateString()
Obtain the string form of the URI, with the password included. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URIish(String s) throws URISyntaxException
URIish
from a string
s
-
URISyntaxException
public URIish(URL u)
u
- the source URL to convert from.public URIish()
Method Detail |
---|
public boolean isRemote()
public String getHost()
public URIish setHost(String n)
n
- the new value for host.
public String getScheme()
public URIish setScheme(String n)
n
- the new value for scheme.
public String getPath()
public URIish setPath(String n)
n
- the new value for path.
public String getUser()
public URIish setUser(String n)
n
- the new value for user.
public String getPass()
public URIish setPass(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 Object
public boolean equals(Object obj)
equals
in class Object
public String toPrivateString()
public String toString()
toString
in class Object
public String getHumanishName() throws 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
.
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 |