public interface BaseUrl
| Modifier and Type | Method and Description |
|---|---|
URI |
getBaseUri() |
String |
getBaseUrl() |
String |
getCanonicalBaseUrl() |
URI |
resolveAddress(String relative)
Resolve the given relative path against the base URI.
|
<I,O> O |
runWithStaticBaseUrl(I input,
com.google.common.base.Function<I,O> runnable)
Run the passed function in an environment where JIRA's configured
baseURL is always used. |
@Nonnull String getBaseUrl()
@Nonnull String getCanonicalBaseUrl()
URI getBaseUri()
getCanonicalBaseUrl()@Nonnull URI resolveAddress(@Nonnull String relative)
relative - the path to be resolvedNullPointerException - when the argument is null@Nullable <I,O> O runWithStaticBaseUrl(@Nullable I input, @Nonnull com.google.common.base.Function<I,O> runnable)
baseURL is always used. This basically
makes the passed function ignore any smart baseURL that can be generated from the request associated
with the calling thread.input - input to pass to the function.runnable - the function to execute.Copyright © 2002-2022 Atlassian. All Rights Reserved.