com.atlassian.plugin.webresource
Class JavascriptWebResource
java.lang.Object
com.atlassian.plugin.webresource.JavascriptWebResource
public class JavascriptWebResource
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavascriptWebResource
public JavascriptWebResource()
matches
public boolean matches(String name)
formatResource
public String formatResource(String url,
Map<String,String> params)
getAttributeParameters
protected List<String> getAttributeParameters()
- Should return a List of parameter name
Strings, which the WebResourceFormatter will write out as
HTML attributes.
- Returns:
- a
List of parameter names
getParametersAsAttributes
protected List<String> getParametersAsAttributes(Map params)
- A convenient method to convert the given parameter map into a List of HTML
String attributes.
For example, an entry with key 'foo' and value 'bar' is converted to the attribute string, foo="bar".
Only parameters that are supported by the WebResourceFormatter are formatted (See getAttributeParameters()).
- Parameters:
params - a Map of parameters
- Returns:
- a list of HTML
String attributes
Copyright © 2013 Atlassian. All Rights Reserved.