org.apache.maven.scm.provider.git.repository
Class GitScmProviderRepository

java.lang.Object
  extended by org.apache.maven.scm.provider.ScmProviderRepository
      extended by org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
          extended by org.apache.maven.scm.provider.git.repository.GitScmProviderRepository

public class GitScmProviderRepository
extends ScmProviderRepositoryWithHost

Version:
$Id: GitScmProviderRepository.java 712872 2008-11-10 23:25:31Z olamy $
Author:
Emmanuel Venisse

Field Summary
static java.lang.String PROTOCOL_FILE
          use local file as transport
static java.lang.String PROTOCOL_GIT
          use gits internal protocol
static java.lang.String PROTOCOL_HTTP
          use the standard port 80 http protocol
static java.lang.String PROTOCOL_HTTPS
          use the standard port 443 https protocol
static java.lang.String PROTOCOL_RSYNC
          use rsync for retrieving the data TODO implement!
static java.lang.String PROTOCOL_SSH
          use secure shell protocol
 
Constructor Summary
GitScmProviderRepository(java.lang.String url)
           
GitScmProviderRepository(java.lang.String url, java.lang.String user, java.lang.String password)
           
 
Method Summary
 ScmProviderRepository getParent()
          
 java.lang.String getProtocol()
           
 java.lang.String getRelativePath(ScmProviderRepository ancestor)
          
 java.lang.String getUrl()
           
 java.lang.String toString()
          
 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepository
getPassword, getUser, isPersistCheckout, setPassword, setPersistCheckout, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL_FILE

public static final java.lang.String PROTOCOL_FILE
use local file as transport

See Also:
Constant Field Values

PROTOCOL_GIT

public static final java.lang.String PROTOCOL_GIT
use gits internal protocol

See Also:
Constant Field Values

PROTOCOL_SSH

public static final java.lang.String PROTOCOL_SSH
use secure shell protocol

See Also:
Constant Field Values

PROTOCOL_HTTP

public static final java.lang.String PROTOCOL_HTTP
use the standard port 80 http protocol

See Also:
Constant Field Values

PROTOCOL_HTTPS

public static final java.lang.String PROTOCOL_HTTPS
use the standard port 443 https protocol

See Also:
Constant Field Values

PROTOCOL_RSYNC

public static final java.lang.String PROTOCOL_RSYNC
use rsync for retrieving the data TODO implement!

See Also:
Constant Field Values
Constructor Detail

GitScmProviderRepository

public GitScmProviderRepository(java.lang.String url)

GitScmProviderRepository

public GitScmProviderRepository(java.lang.String url,
                                java.lang.String user,
                                java.lang.String password)
Method Detail

getUrl

public java.lang.String getUrl()

getProtocol

public java.lang.String getProtocol()
Returns:
the protocol used in this repository (file, http, https, git, ...)

getParent

public ScmProviderRepository getParent()

Overrides:
getParent in class ScmProviderRepository

getRelativePath

public java.lang.String getRelativePath(ScmProviderRepository ancestor)

Overrides:
getRelativePath in class ScmProviderRepository

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.