Package com.composum.sling.nodes.browser
Class BrowserServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.sling.core.servlet.AbstractConsoleServlet
-
- com.composum.sling.nodes.browser.BrowserServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class BrowserServlet extends AbstractConsoleServlet
The general hook (servlet) for the Browser feature provides the path '/bin/browser.html/...'.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONSOLE_PATH
protected CoreConfiguration
coreConfig
protected NodesConfiguration
nodesConfig
static Pattern
PATH_PATTERN
static String
RESOURCE_TYPE
static String
SERVLET_PATH
-
Fields inherited from class com.composum.sling.core.servlet.AbstractConsoleServlet
bundleContext
-
-
Constructor Summary
Constructors Constructor Description BrowserServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getConsolePath(BeanContext context)
extension point to check access rights for a console feature by feature pathprotected Pattern
getPathPattern(BeanContext context)
protected String
getResourceType(BeanContext context)
protected String
getServletPath(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
-
CONSOLE_PATH
public static final String CONSOLE_PATH
- See Also:
- Constant Field Values
-
PATH_PATTERN
public static final Pattern PATH_PATTERN
-
coreConfig
protected CoreConfiguration coreConfig
-
nodesConfig
protected NodesConfiguration nodesConfig
-
-
Method Detail
-
getServletPath
protected String getServletPath(BeanContext context)
- Specified by:
getServletPath
in classAbstractConsoleServlet
-
getPathPattern
protected Pattern getPathPattern(BeanContext context)
- Specified by:
getPathPattern
in classAbstractConsoleServlet
-
getResourceType
protected String getResourceType(BeanContext context)
- Specified by:
getResourceType
in classAbstractConsoleServlet
-
getConsolePath
protected String getConsolePath(BeanContext context)
Description copied from class:AbstractConsoleServlet
extension point to check access rights for a console feature by feature path- Overrides:
getConsolePath
in classAbstractConsoleServlet
- Returns:
- the path to the console feature (content); 'null' if no check supported or check switched off
-
-