public class

CssWebResource

extends Object
implements WebResourceFilter
java.lang.Object
   ↳ com.atlassian.plugin.webresource.CssWebResource

Summary

Public Constructors
CssWebResource()
Public Methods
String formatResource(String url, Map<StringString> params)
boolean matches(String name)
Returns true if this filter supports the inclusion of the given resource.
Protected Methods
List<String> getAttributeParameters()
Should return a List of parameter name Strings, which the WebResourceFormatter will write out as HTML attributes.
List<String> getParametersAsAttributes(Map params)
A convenient method to convert the given parameter map into a List of HTML String attributes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.webresource.WebResourceFilter

Public Constructors

public CssWebResource ()

Public Methods

public String formatResource (String url, Map<StringString> params)

public boolean matches (String name)

Returns true if this filter supports the inclusion of the given resource.

Returns
  • true if the filter includes this resource, false otherwise

Protected Methods

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

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