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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final AdminRuntimeDelegatestatic Patternstatic final Stringstatic final Stringprotected static final Stringprotected final CockpitRuntimeDelegatestatic final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final Stringprotected final Stringprotected final Stringprotected static final Stringprotected static final Stringprotected final TasklistRuntimeDelegateprotected static final Stringprotected final WelcomeRuntimeDelegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyFilter(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 StringgetPlugins(String appName) protected booleanneedsInitialUser(String engineName) protected StringreplacePlaceholder(String data, String appName, String engineName, String applicationPath, String contextPath, String cspNonce) protected voidserveIndexPage(String appName, String engineName, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext) protected voidserveIndexPage(String appName, String engineName, String pageUri, String applicationPath, String contextPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voidserveTemplate(String requestUri, String appName, String pageUri, String applicationPath, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) protected voidsetWebappInTelemetry(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:AbstractTemplateFilterApply the filter to the given request/response. This method must be provided by subclasses to perform actual work.- Specified by:
applyFilterin classAbstractTemplateFilter- Throws:
IOExceptionjakarta.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:
IOExceptionjakarta.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:
IOExceptionjakarta.servlet.ServletException
-
needsInitialUser
protected boolean needsInitialUser(String engineName) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.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
-