jetbrains.buildServer.vcs
Class VcsUrl

java.lang.Object
  extended by jetbrains.buildServer.vcs.VcsUrl

public class VcsUrl
extends java.lang.Object

Author:
Sergey.Anchipolevsky Date: 28.07.2009

Field Summary
static java.lang.String MISSING_VCS_PROVIDER_NAME_ERROR_MSG
           
static java.lang.String SCM_DELIM
           
 
Constructor Summary
VcsUrl(java.lang.String url)
           
VcsUrl(java.lang.String url, java.lang.String username, java.lang.String password)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getLastPathElement()
           
 VcsUrl getParent()
           
 java.lang.String getPassword()
           
 java.lang.String getProviderSchema()
           
 java.lang.String getProviderSpecificPart()
           
 java.lang.String getUrl()
           
 java.lang.String getUsername()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCM_DELIM

public static final java.lang.String SCM_DELIM
See Also:
Constant Field Values

MISSING_VCS_PROVIDER_NAME_ERROR_MSG

public static final java.lang.String MISSING_VCS_PROVIDER_NAME_ERROR_MSG
See Also:
Constant Field Values
Constructor Detail

VcsUrl

public VcsUrl(@NotNull
              java.lang.String url,
              @Nullable
              java.lang.String username,
              @Nullable
              java.lang.String password)
       throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

VcsUrl

public VcsUrl(@NotNull
              java.lang.String url)
       throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getUrl

@NotNull
public java.lang.String getUrl()

getUsername

@Nullable
public java.lang.String getUsername()

getPassword

@Nullable
public java.lang.String getPassword()

getProviderSchema

@NotNull
public java.lang.String getProviderSchema()

getProviderSpecificPart

@NotNull
public java.lang.String getProviderSpecificPart()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParent

@Nullable
public VcsUrl getParent()

getLastPathElement

@Nullable
public java.lang.String getLastPathElement()