|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.subversion.svnclientadapter.SVNUrl
public class SVNUrl
We could have used URL, using custom protocols (svn, svn+ssl) (@see http://developer.java.sun.com/developer/onlineTraining/protocolhandlers/) but this is not really necessary as we don't want to open a connection directly with this class. We just want a string which represent a SVN url which can be used with our JNI methods. An SVNUrl is immutable.
Field Summary | |
---|---|
protected static char |
SEGMENT_SEPARATOR
|
Constructor Summary | |
---|---|
SVNUrl(java.lang.String svnUrl)
Constructor |
Method Summary | |
---|---|
SVNUrl |
appendPath(java.lang.String path)
Asnwer a new SVNUrl with added segments |
boolean |
equals(java.lang.Object target)
|
static int |
getDefaultPort(java.lang.String protocol)
get the default port for given protocol |
java.lang.String |
getHost()
|
java.lang.String |
getLastPathSegment()
|
SVNUrl |
getParent()
Return new SVNUrl which represents parent of the receiver |
java.lang.String[] |
getPathSegments()
get the path of the url. |
int |
getPort()
|
java.lang.String |
getProtocol()
get the protocol |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final char SEGMENT_SEPARATOR
Constructor Detail |
---|
public SVNUrl(java.lang.String svnUrl) throws java.net.MalformedURLException
svnUrl
- a string to parse url from
java.net.MalformedURLException
- when parsing failedMethod Detail |
---|
public SVNUrl appendPath(java.lang.String path)
path
- a String of path segment(s) to ba appended to receiver
public static int getDefaultPort(java.lang.String protocol)
protocol
-
public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String[] getPathSegments()
public java.lang.String getLastPathSegment()
public SVNUrl getParent()
public boolean equals(java.lang.Object target)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |