Class ProcessEnginesFilter
java.lang.Object
org.camunda.bpm.webapp.impl.filter.AbstractTemplateFilter
org.camunda.bpm.webapp.impl.engine.ProcessEnginesFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
- Direct Known Subclasses:
ResourceLoadingProcessEnginesFilter
- Author:
- nico.rehwaldt, Daniel Meyer, Roman Smirnov, Sebastian Stamm
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected final AdminRuntimeDelegate
static Pattern
static final String
static final String
protected static final String
protected final CockpitRuntimeDelegate
static final String
protected static final String
protected static final String
static final String
static final String
protected final String
protected final String
protected static final String
protected static final String
protected final TasklistRuntimeDelegate
protected static final String
protected final WelcomeRuntimeDelegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyFilter
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) Apply the filter to the given request/response.protected <T extends AppPlugin>
CharSequencecreatePluginDependenciesStr
(String appName) protected <T extends AppPlugin>
CharSequencecreatePluginPackagesStr
(String appName, String applicationPath, String contextPath) protected String
getPlugins
(String appName) protected boolean
needsInitialUser
(String engineName) protected String
replacePlaceholder
(String data, String appName, String engineName, String applicationPath, String contextPath, String cspNonce) protected void
serveIndexPage
(String appName, String engineName, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext) protected void
serveIndexPage
(String appName, String engineName, String pageUri, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
serveTemplate
(String requestUri, String appName, String pageUri, String applicationPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) protected void
setWebappInTelemetry
(String engineName, String appName, jakarta.servlet.ServletContext servletContext) Methods inherited from class org.camunda.bpm.webapp.impl.filter.AbstractTemplateFilter
destroy, doFilter, getWebResourceContents, hasWebResource, init
-
Field Details
-
COCKPIT_APP_NAME
- See Also:
-
ADMIN_APP_NAME
- See Also:
-
TASKLIST_APP_NAME
- See Also:
-
WELCOME_APP_NAME
- See Also:
-
DEFAULT_APP
- See Also:
-
INDEX_PAGE
- See Also:
-
SETUP_PAGE
- See Also:
-
APP_ROOT_PLACEHOLDER
- See Also:
-
BASE_PLACEHOLDER
- See Also:
-
PLUGIN_DEPENDENCIES_PLACEHOLDER
- See Also:
-
PLUGIN_PACKAGES_PLACEHOLDER
- See Also:
-
CSP_NONCE_PLACEHOLDER
- See Also:
-
APP_PREFIX_PATTERN
-
cockpitRuntimeDelegate
-
adminRuntimeDelegate
-
tasklistRuntimeDelegate
-
welcomeRuntimeDelegate
-
pluginPackageFormat
-
pluginDependencyFormat
-
-
Constructor Details
-
ProcessEnginesFilter
public ProcessEnginesFilter()
-
-
Method Details
-
applyFilter
protected void applyFilter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException Description copied from class:AbstractTemplateFilter
Apply the filter to the given request/response. This method must be provided by subclasses to perform actual work.- Specified by:
applyFilter
in classAbstractTemplateFilter
- Throws:
IOException
jakarta.servlet.ServletException
-
serveIndexPage
protected void serveIndexPage(String appName, String engineName, String pageUri, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
getDefaultEngineName
-
serveTemplate
protected void serveTemplate(String requestUri, String appName, String pageUri, String applicationPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
needsInitialUser
protected boolean needsInitialUser(String engineName) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
serveIndexPage
protected void serveIndexPage(String appName, String engineName, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext) throws IOException - Throws:
IOException
-
setWebappInTelemetry
-
replacePlaceholder
-
createPluginPackagesStr
protected <T extends AppPlugin> CharSequence createPluginPackagesStr(String appName, String applicationPath, String contextPath) -
createPluginDependenciesStr
-
getPlugins
-