com.atlassian.jira.issue.fields.rest.json.beans
Class JiraBaseUrlsImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrlsImpl
All Implemented Interfaces:
JiraBaseUrls

public class JiraBaseUrlsImpl
extends Object
implements JiraBaseUrls

Since:
v5.0

Field Summary
static String REST_2_PREFIX
           
 
Constructor Summary
JiraBaseUrlsImpl(VelocityRequestContextFactory velocityRequestContextFactory)
           
 
Method Summary
 String baseUrl()
           
 String restApi2BaseUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REST_2_PREFIX

public static final String REST_2_PREFIX
See Also:
Constant Field Values
Constructor Detail

JiraBaseUrlsImpl

public JiraBaseUrlsImpl(VelocityRequestContextFactory velocityRequestContextFactory)
Method Detail

restApi2BaseUrl

public String restApi2BaseUrl()
Specified by:
restApi2BaseUrl in interface JiraBaseUrls
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/").

baseUrl

public String baseUrl()
Specified by:
baseUrl in interface JiraBaseUrls
Returns:
The canonical base URL for this instance. It will return an absolute URL (eg. "http://example.com/jira/").


Copyright © 2002-2014 Atlassian. All Rights Reserved.