public class CssResourceSkinExtensionPlugin extends AbstractResourceSkinExtensionPlugin
contextKey, parametersContextKey, QUERY_PARAMETER_DELIMITER
Constructor and Description |
---|
CssResourceSkinExtensionPlugin(String name,
String className,
XWikiContext context)
XWiki plugin constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
endParsing(String content,
XWikiContext context) |
protected String |
generateLink(String url,
String resourceName,
XWikiContext context)
Takes a URL string and outputs a link which will cause the browser to load the url.
|
protected String |
getAction()
Get the action which the url should specify for calling this resource.
|
String |
getName() |
getAlwaysUsedExtensions, getLink, hasPageExtensions
getCacheResources, getCurrentDocumentReferenceResolver, getDefaultEntityReferenceSerializer, getImportString, getLink, getParameter, getParametersForResource, getParametersMap, getPluginApi, getPulledResources, getSkinExtensionAsync, initializeRequestListIfNeeded, parametersAsQueryString, restoreCacheResources, sanitize, use, use
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, init, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
public CssResourceSkinExtensionPlugin(String name, String className, XWikiContext context)
name
- The name of the plugin, which can be used for retrieving the plugin API from velocity. Unused.className
- The canonical classname of the plugin. Unused.context
- The current request context.XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)
public String getName()
getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
protected String getAction()
AbstractResourceSkinExtensionPlugin
getAction
in class AbstractResourceSkinExtensionPlugin
protected String generateLink(String url, String resourceName, XWikiContext context)
AbstractResourceSkinExtensionPlugin
generateLink
in class AbstractResourceSkinExtensionPlugin
url
- String representation of the url to load (eg: /res/url.js
)resourceName
- name of the pulled resourcecontext
- the current request context<script src="/res/url.js"/>
)public String endParsing(String content, XWikiContext context)
At the end of the request, insert the links to the pulled resources in the response, in the place marked by an XML comment of the format <!-- canonical.plugin.classname -->.
We must override this method since the plugin manager only calls it for classes that provide their own implementation, and not an inherited one.
endParsing
in interface XWikiPluginInterface
endParsing
in class AbstractSkinExtensionPlugin
AbstractSkinExtensionPlugin.endParsing(String, XWikiContext)
Copyright © 2004–2021 XWiki. All rights reserved.