Class EsiGenerator
- java.lang.Object
-
- org.apache.sling.dynamicinclude.generator.types.EsiGenerator
-
- All Implemented Interfaces:
IncludeGenerator
public class EsiGenerator extends java.lang.Object implements IncludeGenerator
ESI include generator
-
-
Constructor Summary
Constructors Constructor Description EsiGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInclude(org.apache.sling.api.SlingHttpServletRequest request, java.lang.String url)
Returns the string used to include the resource.java.lang.String
getType()
-
-
-
Method Detail
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceIncludeGenerator
-
getInclude
public java.lang.String getInclude(org.apache.sling.api.SlingHttpServletRequest request, java.lang.String url)
Description copied from interface:IncludeGenerator
Returns the string used to include the resource. For example, this might be a Javascript code that retrieves a snippet of html, an Apache SSI Tag, or an Edge Side Include Tag.This method receives the sling request and an Url that has already be normalized as followed:
- The query string has been removed
- The Url has been mapped using the ResourceResolver
- The jcr:content paths have been encoded to _jcr_content.
- Specified by:
getInclude
in interfaceIncludeGenerator
- Parameters:
request
- the Sling request objecturl
- the requested url, normalized- Returns:
- a String used to include the resource
-
-