com.atlassian.plugin.webresource
Class JavascriptWebResource

java.lang.Object
  extended by com.atlassian.plugin.webresource.JavascriptWebResource

public class JavascriptWebResource
extends java.lang.Object


Constructor Summary
JavascriptWebResource()
           
 
Method Summary
 java.lang.String formatResource(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params)
           
protected  java.util.List<java.lang.String> getAttributeParameters()
          Should return a List of parameter name Strings, which the WebResourceFormatter will write out as HTML attributes.
protected  java.util.List<java.lang.String> getParametersAsAttributes(java.util.Map params)
          A convenient method to convert the given parameter map into a List of HTML String attributes.
 boolean matches(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptWebResource

public JavascriptWebResource()
Method Detail

matches

public boolean matches(java.lang.String name)

formatResource

public java.lang.String formatResource(java.lang.String url,
                                       java.util.Map<java.lang.String,java.lang.String> params)

getAttributeParameters

protected java.util.List<java.lang.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 java.util.List<java.lang.String> getParametersAsAttributes(java.util.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 © 2010 Atlassian. All Rights Reserved.