Interface JiraBaseUrls

All Known Implementing Classes:
JiraBaseUrlsImpl

@InjectableComponent public interface JiraBaseUrls
A simple component for getting the base url of the app
Since:
v5.0
  • Method Details

    • baseUrl

      String baseUrl()
      Returns:
      The canonical base URL for this instance. It will return an absolute URL without trailing "/" character (eg. "http://example.com/jira"). If APKeys.JIRA_SELF_URL_ORIGIN_TYPE is set to SelfUrlOriginType.BASEURL, then base url is taken from APKeys.JIRA_BASEURL. Host from request is taken otherwise.
    • restApi2BaseUrl

      String restApi2BaseUrl()
      Returns:
      The canonical base URL for the /rest/api/2/ endpoint. It will return an absolute URL (eg. "http://example.com/jira/rest/api/2/").