Package com.atlassian.plugin.webresource
Class PrefetchLinkWebResource
java.lang.Object
com.atlassian.plugin.webresource.PrefetchLinkWebResource
- All Implemented Interfaces:
WebResourceFormatter,WebResourceFilter
Outputs all URLs as
<link rel="prefetch" href="theurl">.- Since:
- 3.6.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatResource(String url, Map<String, String> attributes) Returns a formatted resource string.Should return a List of parameter nameStrings, which the WebResourceFormatter will write out as HTML attributes.getParametersAsAttributes(Map params) A convenient method to convert the given parameter map into a List of HTMLStringattributes.boolean
-
Field Details
-
FORMATTER
-
-
Constructor Details
-
PrefetchLinkWebResource
public PrefetchLinkWebResource()
-
-
Method Details
-
matches
-
formatResource
Description copied from interface:WebResourceFormatterReturns a formatted resource string. -
getAttributeParameters
Should return a List of parameter nameStrings, which the WebResourceFormatter will write out as HTML attributes.- Returns:
- a
Listof parameter names
-
getParametersAsAttributes
A convenient method to convert the given parameter map into a List of HTMLStringattributes. 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()).
-