| java.lang.Object | |
| ↳ | com.atlassian.jira.util.BaseUrlSwapper |
Utility class for swapping the base of a URL.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Swap the base of the given url from the oldBaseUrl to the newBaseUrl.
| |||||||||||
Swap the base of the given url to be the display url of the given application link.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Swap the base of the given url from the oldBaseUrl to the newBaseUrl. If the url does not start with the oldBaseUrl, the original url is returned. If the url is null, null is returned.
| url | the url to swap the base of |
|---|---|
| oldBaseUrl | the base url of the given url |
| newBaseUrl | the new base url to set on the given url |
Swap the base of the given url to be the display url of the given application link. The swap is made only when the base of the given url is the RPC url of the given application link. If no swap is made, the original url is returned. If the url is null, null is returned.
| url | the url to swap the base of |
|---|---|
| appLink | the application link |

