com.atlassian.gadgets.util
Class AbstractUrlBuilder

java.lang.Object
  extended by com.atlassian.gadgets.util.AbstractUrlBuilder
All Implemented Interfaces:
UrlBuilder
Direct Known Subclasses:
DashboardUrlBuilderImpl, DirectoryUrlBuilderImpl, GadgetUrlBuilder

public abstract class AbstractUrlBuilder
extends Object
implements UrlBuilder


Field Summary
protected  com.atlassian.sal.api.ApplicationProperties applicationProperties
           
protected  com.atlassian.plugin.webresource.WebResourceManager webResourceManager
           
 
Constructor Summary
AbstractUrlBuilder(com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, String pluginModuleKey)
           
 
Method Summary
 String buildImageUrl(String path)
          Returns the URL to the image specified by the given path.
 String buildRpcJsUrl()
          Returns the URL to the RPC javascript file.
protected  String getBaseUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webResourceManager

protected final com.atlassian.plugin.webresource.WebResourceManager webResourceManager

applicationProperties

protected final com.atlassian.sal.api.ApplicationProperties applicationProperties
Constructor Detail

AbstractUrlBuilder

public AbstractUrlBuilder(com.atlassian.sal.api.ApplicationProperties applicationProperties,
                          com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                          String pluginModuleKey)
Method Detail

buildImageUrl

public String buildImageUrl(String path)
Description copied from interface: UrlBuilder
Returns the URL to the image specified by the given path.

Specified by:
buildImageUrl in interface UrlBuilder
Parameters:
path - path to the image
Returns:
URL to the image specified by the given path.

buildRpcJsUrl

public String buildRpcJsUrl()
Description copied from interface: UrlBuilder
Returns the URL to the RPC javascript file.

Specified by:
buildRpcJsUrl in interface UrlBuilder
Returns:
the URL to the RPC javascript file

getBaseUrl

protected String getBaseUrl()


Copyright © 2011 Atlassian. All Rights Reserved.