com.atlassian.jira.web.util
Class ExternalLinkUtilImpl

java.lang.Object
  extended by com.atlassian.jira.web.util.ExternalLinkUtilImpl
All Implemented Interfaces:
ExternalLinkUtil

@Immutable
public class ExternalLinkUtilImpl
extends Object
implements ExternalLinkUtil

A simple utility class that lets you resolve external links that may need to change, because of partner sites and such.


Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
ExternalLinkUtilImpl()
           
ExternalLinkUtilImpl(String propFileLocation)
           
 
Method Summary
static ExternalLinkUtil getInstance()
           
 String getPropertiesFilename()
           
 String getProperty(String key)
           
 String getProperty(String string, Object parameters)
           
 String getProperty(String key, String value1)
           
 String getProperty(String key, String value1, String value2)
           
 String getProperty(String key, String value1, String value2, String value3)
           
 String getProperty(String key, String value1, String value2, String value3, String value4)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Logger log
Constructor Detail

ExternalLinkUtilImpl

public ExternalLinkUtilImpl()

ExternalLinkUtilImpl

public ExternalLinkUtilImpl(String propFileLocation)
Method Detail

getPropertiesFilename

public String getPropertiesFilename()
Specified by:
getPropertiesFilename in interface ExternalLinkUtil
Returns:
The name of the propertiesfile that provides the external-links.

getInstance

public static ExternalLinkUtil getInstance()

getProperty

public String getProperty(String key)
Specified by:
getProperty in interface ExternalLinkUtil

getProperty

public String getProperty(String key,
                          String value1)
Specified by:
getProperty in interface ExternalLinkUtil

getProperty

public String getProperty(String key,
                          String value1,
                          String value2)
Specified by:
getProperty in interface ExternalLinkUtil

getProperty

public String getProperty(String key,
                          String value1,
                          String value2,
                          String value3)
Specified by:
getProperty in interface ExternalLinkUtil

getProperty

public String getProperty(String key,
                          String value1,
                          String value2,
                          String value3,
                          String value4)
Specified by:
getProperty in interface ExternalLinkUtil

getProperty

public String getProperty(String string,
                          Object parameters)
Specified by:
getProperty in interface ExternalLinkUtil


Copyright © 2002-2013 Atlassian. All Rights Reserved.