|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.StarTeamURL
StarTeamURL uses a URL-like syntax to reference a StarTeam Server, Project, View or Folder. Used in conjunction with StarTeamFinder, it provides a convenient way to locate important StarTeam objects.
StarTeamURL supports the following syntax:
starteam://username:password@hostname:port/Project/View/FolderA/FolderB/...
The "starteam://" prefix is optional.
Alternatively, the following syntax is also supported:
starteam://username:password@server/Project/View/FolderA/FolderB/...
Thus, if no ":port" is specified, the hostname is interpreted as a server description. The description is looked up in the server list, and, if found, the connection information from the server list (host address, port, encryption and compression settings, and MPX profile name) are used to establish the server connection.
StarTeamFinder,
ServerList,
Server.Server(ServerInfo)| Constructor Summary | |
StarTeamURL(java.lang.String url)
Construct a new StarTeamURL with the given specifier. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
java.util.StringTokenizer |
getFolders()
Returns a StringTokenizer that can be used to enumerate the folder names found in the path portion of the URL. |
java.lang.String |
getHostName()
Returns the host name specified in the URL or null of not found. |
java.lang.String |
getPassword()
Returns the password specified in the URL or null of not found. |
java.lang.String |
getPath()
Returns the path specified in the URL or null of not found. |
java.lang.String |
getPort()
Returns the port specified in the URL or null of not found. |
java.lang.String |
getProjectName()
Returns the project name specified in the URL or null of not found. |
int |
getProtocol()
Returns the protocol specified in the URL or PROTOCOL_TCP_IP_SOCKETS of not found. |
java.lang.String |
getSource()
Returns the source string for the URL. |
java.lang.String |
getUserName()
Returns the user name specified in the URL or null of not found. |
int |
hashCode()
returns a unique hash for all instances of this type |
java.lang.String |
toString()
Returns a string representation of the various components of the URL. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StarTeamURL(java.lang.String url)
url - the string specifier of the StarTeamURL.| Method Detail |
public java.lang.String getSource()
public java.lang.String getUserName()
public java.lang.String getPassword()
public java.lang.String getHostName()
public java.lang.String getPort()
public int getProtocol()
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETSpublic java.lang.String getProjectName()
public java.lang.String getPath()
public java.util.StringTokenizer getFolders()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||