public class BambooUrl extends Object
Constructor and Description |
---|
BambooUrl(AdministrationConfigurationAccessor administrationConfigurationAccessor) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl(com.atlassian.sal.api.UrlMode urlMode) |
static String |
getCurrentPathAndQuery() |
String |
rootContext() |
String |
withBaseUrlFromConfiguration()
This URL should be used for storage or when a user other than the current one will use it.
|
String |
withBaseUrlFromConfiguration(String path)
This URL should be used for storage or when a user other than the current one will use it.
|
String |
withBaseUrlFromRequest()
This URL should be used when redirecting to Bamboo instance from external applications
within the same user session.
|
String |
withBaseUrlFromRequest(String path)
This URL should be used when redirecting to Bamboo instance from external applications
within the same user session.
|
String |
withRelativeUrl()
This URL should be used when redirecting internally within Bamboo instance
|
public BambooUrl(AdministrationConfigurationAccessor administrationConfigurationAccessor)
public String withBaseUrlFromConfiguration()
@NotNull public String withBaseUrlFromConfiguration(@NotNull String path)
@NotNull public String withRelativeUrl()
@NotNull public String withBaseUrlFromRequest()
@NotNull public String withBaseUrlFromRequest(@NotNull String path)
@NotNull public static String getCurrentPathAndQuery()
IllegalStateException
- if HttpServletRequest is not presentpublic String rootContext()
public String getBaseUrl(com.atlassian.sal.api.UrlMode urlMode)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.