Class EditIncludeFilter
- java.lang.Object
-
- org.apache.sling.cms.core.internal.filters.EditIncludeFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class EditIncludeFilter extends Object implements javax.servlet.Filter
Filter for injecting the request attributes and markup to enable the Sling CMS editor.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENABLED_ATTR_NAMEprotected static StringENTRY_BASEstatic StringWRITE_DROP_TARGET_ATTR_NAME
-
Constructor Summary
Constructors Constructor Description EditIncludeFilter(org.osgi.service.component.ComponentContext context, I18NProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Field Detail
-
ENABLED_ATTR_NAME
public static final String ENABLED_ATTR_NAME
- See Also:
- Constant Field Values
-
WRITE_DROP_TARGET_ATTR_NAME
public static final String WRITE_DROP_TARGET_ATTR_NAME
- See Also:
- Constant Field Values
-
ENTRY_BASE
protected static final String ENTRY_BASE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EditIncludeFilter
public EditIncludeFilter(org.osgi.service.component.ComponentContext context, I18NProvider provider) throws IOException- Throws:
IOException
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
-