|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.utils.BambooUrl
public class BambooUrl
Encapsulates creation of redirect URLs.
Constructor Summary | |
---|---|
BambooUrl(AdministrationConfiguration administrationConfiguration)
Deprecated. since 5.0 use BambooUrl(AdministrationConfigurationAccessor) |
|
BambooUrl(AdministrationConfigurationAccessor administrationConfigurationAccessor)
|
Method Summary | |
---|---|
String |
getBaseUrl()
Deprecated. since 5.6 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BambooUrl(AdministrationConfigurationAccessor administrationConfigurationAccessor)
@Deprecated public BambooUrl(AdministrationConfiguration administrationConfiguration)
BambooUrl(AdministrationConfigurationAccessor)
administrationConfiguration
- Method Detail |
---|
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()
@Deprecated public String getBaseUrl()
public String getBaseUrl(com.atlassian.sal.api.UrlMode urlMode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |