Class CodeEditorServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.sling.core.servlet.AbstractConsoleServlet
-
- com.composum.sling.nodes.components.codeeditor.CodeEditorServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class CodeEditorServlet extends com.composum.sling.core.servlet.AbstractConsoleServlet
The general hook (servlet) for the Editor feature to edit code in a separate view.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected NodesConfiguration
config
static Pattern
PATH_PATTERN
static String
RESOURCE_TYPE
static String
SERVLET_PATH
-
Constructor Summary
Constructors Constructor Description CodeEditorServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getConsolePath(com.composum.sling.core.BeanContext context)
protected Pattern
getPathPattern(com.composum.sling.core.BeanContext context)
protected String
getResourceType(com.composum.sling.core.BeanContext context)
protected String
getServletPath(com.composum.sling.core.BeanContext context)
-
Methods inherited from class com.composum.sling.core.servlet.AbstractConsoleServlet
activate, checkConsoleAccess, createContext, doGet, getRequestPath, getServiceKey, prepareForward
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
-
-
-
-
Field Detail
-
SERVLET_PATH
public static final String SERVLET_PATH
- See Also:
- Constant Field Values
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PATH_PATTERN
public static final Pattern PATH_PATTERN
-
config
protected NodesConfiguration config
-
-
Method Detail
-
getServletPath
protected String getServletPath(com.composum.sling.core.BeanContext context)
- Specified by:
getServletPath
in classcom.composum.sling.core.servlet.AbstractConsoleServlet
-
getPathPattern
protected Pattern getPathPattern(com.composum.sling.core.BeanContext context)
- Specified by:
getPathPattern
in classcom.composum.sling.core.servlet.AbstractConsoleServlet
-
getResourceType
protected String getResourceType(com.composum.sling.core.BeanContext context)
- Specified by:
getResourceType
in classcom.composum.sling.core.servlet.AbstractConsoleServlet
-
getConsolePath
protected String getConsolePath(com.composum.sling.core.BeanContext context)
- Overrides:
getConsolePath
in classcom.composum.sling.core.servlet.AbstractConsoleServlet
-
-