Package com.composum.sling.nodes.servlet
Class ServletResourceType.WebconsoleWrapper
- java.lang.Object
-
- com.composum.sling.nodes.servlet.ServletResourceType.ServletWrapper
-
- com.composum.sling.nodes.servlet.ServletResourceType.WebconsoleWrapper
-
- Enclosing class:
- ServletResourceType
protected class ServletResourceType.WebconsoleWrapper extends ServletResourceType.ServletWrapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ServletResourceType.WebconsoleWrapper.ActionResponseWrapper
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_APP_ROOT
static String
ATTR_APP_ROOT_OLD
static String
ATTR_LABEL_MAP
static String
ATTR_LABEL_MAP_OLD
static String
ATTR_PLUGIN_ROOT
String[]
CSRF_OPTIONS
String[]
CSS_FILES
protected String[]
cssReferences
String[]
JS_FILES
static String
PLUGIN_CATEGORY
static String
PLUGIN_CSS_REFERENCES
static String
PLUGIN_LABEL
static String
PLUGIN_TITLE
static String
PLUGIN_TOOL_PATH
protected org.apache.sling.api.resource.ValueMap
properties
static String
WEBCONSOLE_CLASS
static String
WEBCONSOLE_PATH
-
Fields inherited from class com.composum.sling.nodes.servlet.ServletResourceType.ServletWrapper
wrappedServlet
-
-
Constructor Summary
Constructors Constructor Description WebconsoleWrapper(@NotNull javax.servlet.Servlet servlet, @NotNull Map<String,Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendCsrfLinks(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull PrintWriter writer)
protected void
appendCssLink(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull PrintWriter writer, @NotNull String root, @NotNull String path)
protected void
appendJsLink(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull PrintWriter writer, @NotNull String path)
protected void
renderPlugin(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
void
service(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
PLUGIN_CATEGORY
public static final String PLUGIN_CATEGORY
- See Also:
- Constant Field Values
-
PLUGIN_LABEL
public static final String PLUGIN_LABEL
- See Also:
- Constant Field Values
-
PLUGIN_TITLE
public static final String PLUGIN_TITLE
- See Also:
- Constant Field Values
-
PLUGIN_CSS_REFERENCES
public static final String PLUGIN_CSS_REFERENCES
- See Also:
- Constant Field Values
-
ATTR_APP_ROOT
public static final String ATTR_APP_ROOT
- See Also:
- Constant Field Values
-
ATTR_PLUGIN_ROOT
public static final String ATTR_PLUGIN_ROOT
- See Also:
- Constant Field Values
-
ATTR_LABEL_MAP
public static final String ATTR_LABEL_MAP
- See Also:
- Constant Field Values
-
WEBCONSOLE_CLASS
public static final String WEBCONSOLE_CLASS
- See Also:
- Constant Field Values
-
ATTR_LABEL_MAP_OLD
public static final String ATTR_LABEL_MAP_OLD
- See Also:
- Constant Field Values
-
ATTR_APP_ROOT_OLD
public static final String ATTR_APP_ROOT_OLD
- See Also:
- Constant Field Values
-
WEBCONSOLE_PATH
public static final String WEBCONSOLE_PATH
- See Also:
- Constant Field Values
-
PLUGIN_TOOL_PATH
public static final String PLUGIN_TOOL_PATH
- See Also:
- Constant Field Values
-
CSS_FILES
public final String[] CSS_FILES
-
JS_FILES
public final String[] JS_FILES
-
CSRF_OPTIONS
public final String[] CSRF_OPTIONS
-
properties
protected final org.apache.sling.api.resource.ValueMap properties
-
cssReferences
protected final String[] cssReferences
-
-
Method Detail
-
service
public void service(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classServletResourceType.ServletWrapper
- Throws:
javax.servlet.ServletException
IOException
-
renderPlugin
protected void renderPlugin(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
appendCssLink
protected void appendCssLink(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull PrintWriter writer, @NotNull @NotNull String root, @NotNull @NotNull String path)
-
appendJsLink
protected void appendJsLink(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull PrintWriter writer, @NotNull @NotNull String path)
-
appendCsrfLinks
protected void appendCsrfLinks(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull PrintWriter writer)
-
-