com.atlassian.plugin.webresource
Class CssWebResource
java.lang.Object
com.atlassian.plugin.webresource.CssWebResource
public class CssWebResource
- extends Object
|
Field Summary |
protected static com.atlassian.plugin.webresource.WebResourceFormatter |
FORMATTER
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORMATTER
protected static final com.atlassian.plugin.webresource.WebResourceFormatter FORMATTER
CssWebResource
public CssWebResource()
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 © 2011 Atlassian. All Rights Reserved.