|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.util.UrlUtils
public abstract class UrlUtils
URL utilities
Constructor Summary | |
---|---|
UrlUtils()
|
Method Summary | |
---|---|
static void |
addParam(String name,
String value,
StringBuilder uri)
Add encoded parameter to URI |
static void |
addParams(Map<String,String> params,
StringBuilder uri)
Add request parameters to URI |
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 |
decode(String value)
URL-decode value using 'ISO-8859-1' character set |
static String |
encode(String value)
URL-encode value using 'ISO-8859-1' character set |
static String |
getParam(URI uri,
String name)
Get parameter value with name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlUtils()
Method Detail |
---|
public static String createRemoteSshUrl(IRepositoryIdProvider repository)
repository
-
public static String createRemoteSshUrl(IRepositoryIdProvider repository, String host)
repository
- host
-
public static String createRemoteHttpsUrl(IRepositoryIdProvider repository, String user)
repository
- user
-
public static String createRemoteHttpsUrl(IRepositoryIdProvider repository, String host, String user)
repository
- host
- user
-
public static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository)
repository
-
public static String createRemoteReadOnlyUrl(IRepositoryIdProvider repository, String host)
repository
- host
-
public static String encode(String value)
value
-
public static String decode(String value)
value
-
public static void addParam(String name, String value, StringBuilder uri)
name
- value
- uri
- public static void addParams(Map<String,String> params, StringBuilder uri)
params
- uri
- public static String getParam(URI uri, String name)
uri
- name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |