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

public class ProcessEnginesFilter extends AbstractTemplateFilter
Author:
nico.rehwaldt, Daniel Meyer, Roman Smirnov, Sebastian Stamm
  • Field Details

  • 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 class AbstractTemplateFilter
      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

      protected String 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

      protected void setWebappInTelemetry(String engineName, String appName, jakarta.servlet.ServletContext servletContext)
    • replacePlaceholder

      protected String replacePlaceholder(String data, String appName, String engineName, String applicationPath, String contextPath, String cspNonce)
    • createPluginPackagesStr

      protected <T extends AppPlugin> CharSequence createPluginPackagesStr(String appName, String applicationPath, String contextPath)
    • createPluginDependenciesStr

      protected <T extends AppPlugin> CharSequence createPluginDependenciesStr(String appName)
    • getPlugins

      protected <T extends AppPlugin> List<T> getPlugins(String appName)