Constructor and Description |
---|
MockBaseUrl(String baseUrl,
String staticBaseUrl) |
Modifier and Type | Method and Description |
---|---|
URI |
getBaseUri() |
String |
getBaseUrl() |
String |
getCanonicalBaseUrl() |
<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 public String getBaseUrl()
getBaseUrl
in interface BaseUrl
@Nonnull public String getCanonicalBaseUrl()
getCanonicalBaseUrl
in interface BaseUrl
public URI getBaseUri()
getBaseUri
in interface BaseUrl
BaseUrl.getCanonicalBaseUrl()
@Nullable public <I,O> O runWithStaticBaseUrl(@Nullable I input, @Nonnull com.google.common.base.Function<I,O> runnable)
BaseUrl
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.runWithStaticBaseUrl
in interface BaseUrl
input
- input to pass to the function.runnable
- the function to execute.Copyright © 2002-2016 Atlassian. All Rights Reserved.