Class AbstractClientlibRenderer
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.AbstractClientlibRenderer
-
- All Implemented Interfaces:
ClientlibRenderer
- Direct Known Subclasses:
DefaultJavascriptProcessor
,DefaultLinkRenderer
,YUICssProcessor
public abstract class AbstractClientlibRenderer extends Object implements ClientlibRenderer
Contains the default implementation for link rendering.
-
-
Constructor Summary
Constructors Constructor Description AbstractClientlibRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getLinkTemplate()
The link template we use when rendering.void
renderClientlibLinks(ClientlibElement clientlib, Writer writer, org.apache.sling.api.SlingHttpServletRequest request, RendererContext context)
Renders the given clientlib / category to writer.protected void
renderClientlibLinks(ClientlibElement clientlib, Writer writer, org.apache.sling.api.SlingHttpServletRequest request, RendererContext context, String template)
-
-
-
Method Detail
-
getLinkTemplate
protected abstract String getLinkTemplate()
The link template we use when rendering.
-
renderClientlibLinks
public void renderClientlibLinks(ClientlibElement clientlib, Writer writer, org.apache.sling.api.SlingHttpServletRequest request, RendererContext context) throws IOException, javax.jcr.RepositoryException
Description copied from interface:ClientlibRenderer
Renders the given clientlib / category to writer.- Specified by:
renderClientlibLinks
in interfaceClientlibRenderer
- Parameters:
clientlib
- aClientlib
orClientlibCategory
- Throws:
IOException
javax.jcr.RepositoryException
-
renderClientlibLinks
protected void renderClientlibLinks(ClientlibElement clientlib, Writer writer, org.apache.sling.api.SlingHttpServletRequest request, RendererContext context, String template) throws IOException, javax.jcr.RepositoryException
- Throws:
IOException
javax.jcr.RepositoryException
-
-