com.atlassian.jira.util
Class DefaultBaseUrl

java.lang.Object
  extended by com.atlassian.jira.util.DefaultBaseUrl
All Implemented Interfaces:
BaseUrl

public class DefaultBaseUrl
extends Object
implements BaseUrl

Since:
v5.2

Constructor Summary
DefaultBaseUrl(VelocityRequestContextFactory factory)
           
 
Method Summary
 String getBaseUrl()
           
 String getCanonicalBaseUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBaseUrl

public DefaultBaseUrl(VelocityRequestContextFactory factory)
Method Detail

getBaseUrl

@Nonnull
public String getBaseUrl()
Specified by:
getBaseUrl in interface BaseUrl
Returns:
The base URL for this instance, also known as the context path. If running in the context of a web request, this will return a url relative to the server root (ie "/jira/"). If running via email, it will return an absolute URL (eg. "http://example.com/jira/").

getCanonicalBaseUrl

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.