org.eclipse.egit.github.core.util
Class UrlUtils

java.lang.Object
  extended by org.eclipse.egit.github.core.util.UrlUtils

public abstract class UrlUtils
extends Object

URL utilities


Constructor Summary
UrlUtils()
           
 
Method Summary
static String createRemoteHttpsUrl(IRepositoryIdProvider repository, String user)
          Create HTTPS URL used for repository remote configs
static String createRemoteHttpsUrl(IRepositoryIdProvider repository, String host, String user)
          Create HTTPS URL used for repository remote configs
static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository)
          Create read-only URL used for repository remote configs
static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository, String host)
          Create read-only URL used for repository remote configs
static String createRemoteSshUrl(IRepositoryIdProvider repository)
          Create SSH URL used for repository remote configs
static String createRemoteSshUrl(IRepositoryIdProvider repository, String host)
          Create SSH URL used for repository remote configs
static String encode(String url)
          Encode given url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlUtils

public UrlUtils()
Method Detail

encode

public static String encode(String url)
Encode given url

Parameters:
url -
Returns:
encoded url

createRemoteSshUrl

public static String createRemoteSshUrl(IRepositoryIdProvider repository)
Create SSH URL used for repository remote configs

Parameters:
repository -
Returns:
URL

createRemoteSshUrl

public static String createRemoteSshUrl(IRepositoryIdProvider repository,
                                        String host)
Create SSH URL used for repository remote configs

Parameters:
repository -
host -
Returns:
URL

createRemoteHttpsUrl

public static String createRemoteHttpsUrl(IRepositoryIdProvider repository,
                                          String user)
Create HTTPS URL used for repository remote configs

Parameters:
repository -
user -
Returns:
URL

createRemoteHttpsUrl

public static String createRemoteHttpsUrl(IRepositoryIdProvider repository,
                                          String host,
                                          String user)
Create HTTPS URL used for repository remote configs

Parameters:
repository -
host -
user -
Returns:
URL

createRemoteReadOnlyUrl

public static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository)
Create read-only URL used for repository remote configs

Parameters:
repository -
Returns:
URL

createRemoteReadOnlyUrl

public static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository,
                                             String host)
Create read-only URL used for repository remote configs

Parameters:
repository -
host -
Returns:
URL


Copyright © 2012. All Rights Reserved.