public class BaseUrlSwapper extends Object
| Constructor and Description |
|---|
BaseUrlSwapper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
swapBaseUrl(String url,
String oldBaseUrl,
String newBaseUrl)
Swap the base of the given url from the oldBaseUrl to the newBaseUrl.
|
static String |
swapRpcUrlToDisplayUrl(String url,
com.atlassian.applinks.api.ApplicationLink appLink)
Swap the base of the given url to be the display url of the given application link.
|
public static String swapBaseUrl(String url, String oldBaseUrl, String newBaseUrl)
url - the url to swap the base ofoldBaseUrl - the base url of the given urlnewBaseUrl - the new base url to set on the given urlpublic static String swapRpcUrlToDisplayUrl(String url, com.atlassian.applinks.api.ApplicationLink appLink)
url - the url to swap the base ofappLink - the application linkCopyright © 2002-2017 Atlassian. All Rights Reserved.