org.camunda.bpm.webapp.impl.engine
Class ProcessEnginesFilter

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.filter.AbstractTemplateFilter
      extended by org.camunda.bpm.webapp.impl.engine.ProcessEnginesFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ProcessEnginesFilter
extends AbstractTemplateFilter

Author:
nico.rehwaldt, Daniel Meyer, Roman Smirnov, Sebastian Stamm

Field Summary
protected static String ADMIN_APP_NAME
           
protected  AdminRuntimeDelegate adminRuntimeDelegate
           
static Pattern APP_PREFIX_PATTERN
           
static String APP_ROOT_PLACEHOLDER
           
static String BASE_PLACEHOLDER
           
protected static String COCKPIT_APP_NAME
           
protected  CockpitRuntimeDelegate cockpitRuntimeDelegate
           
protected static String DEFAULT_APP
           
protected static String INDEX_PAGE
           
static String PLUGIN_DEPENDENCIES_PLACEHOLDER
           
static String PLUGIN_PACKAGES_PLACEHOLDER
           
protected  String pluginDependencyFormat
           
protected  String pluginPackageFormat
           
protected static String SETUP_PAGE
           
protected static String TASKLIST_APP_NAME
           
protected  TasklistRuntimeDelegate tasklistRuntimeDelegate
           
protected static String WELCOME_APP_NAME
           
protected  WelcomeRuntimeDelegate welcomeRuntimeDelegate
           
 
Constructor Summary
ProcessEnginesFilter()
           
 
Method Summary
protected  void applyFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
          Apply the filter to the given request/response.
protected
<T extends AppPlugin>
CharSequence
createPluginDependenciesStr(String appName)
           
protected
<T extends AppPlugin>
CharSequence
createPluginPackagesStr(String appName, String contextPath)
           
protected  String getDefaultEngineName()
           
protected
<T extends AppPlugin>
List<T>
getPlugins(String appName)
           
protected  boolean needsInitialUser(String engineName)
           
protected  String replacePlaceholder(String data, String appName, String engineName, String contextPath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void serveIndexPage(String appName, String engineName, String contextPath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void serveIndexPage(String appName, String engineName, String pageUri, String contextPath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
protected  void serveTemplate(String requestUri, String appName, String pageUri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 
Methods inherited from class org.camunda.bpm.webapp.impl.filter.AbstractTemplateFilter
destroy, doFilter, getWebResourceContents, hasWebResource, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COCKPIT_APP_NAME

protected static final String COCKPIT_APP_NAME
See Also:
Constant Field Values

ADMIN_APP_NAME

protected static final String ADMIN_APP_NAME
See Also:
Constant Field Values

TASKLIST_APP_NAME

protected static final String TASKLIST_APP_NAME
See Also:
Constant Field Values

WELCOME_APP_NAME

protected static final String WELCOME_APP_NAME
See Also:
Constant Field Values

DEFAULT_APP

protected static final String DEFAULT_APP
See Also:
Constant Field Values

INDEX_PAGE

protected static final String INDEX_PAGE
See Also:
Constant Field Values

SETUP_PAGE

protected static final String SETUP_PAGE
See Also:
Constant Field Values

APP_ROOT_PLACEHOLDER

public static final String APP_ROOT_PLACEHOLDER
See Also:
Constant Field Values

BASE_PLACEHOLDER

public static final String BASE_PLACEHOLDER
See Also:
Constant Field Values

PLUGIN_DEPENDENCIES_PLACEHOLDER

public static final String PLUGIN_DEPENDENCIES_PLACEHOLDER
See Also:
Constant Field Values

PLUGIN_PACKAGES_PLACEHOLDER

public static final String PLUGIN_PACKAGES_PLACEHOLDER
See Also:
Constant Field Values

APP_PREFIX_PATTERN

public static Pattern APP_PREFIX_PATTERN

cockpitRuntimeDelegate

protected final CockpitRuntimeDelegate cockpitRuntimeDelegate

adminRuntimeDelegate

protected final AdminRuntimeDelegate adminRuntimeDelegate

tasklistRuntimeDelegate

protected final TasklistRuntimeDelegate tasklistRuntimeDelegate

welcomeRuntimeDelegate

protected final WelcomeRuntimeDelegate welcomeRuntimeDelegate

pluginPackageFormat

protected final String pluginPackageFormat

pluginDependencyFormat

protected final String pluginDependencyFormat
Constructor Detail

ProcessEnginesFilter

public ProcessEnginesFilter()
Method Detail

applyFilter

protected void applyFilter(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           javax.servlet.FilterChain chain)
                    throws IOException,
                           javax.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
javax.servlet.ServletException

serveIndexPage

protected void serveIndexPage(String appName,
                              String engineName,
                              String pageUri,
                              String contextPath,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              javax.servlet.FilterChain chain)
                       throws IOException,
                              javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

getDefaultEngineName

protected String getDefaultEngineName()

serveTemplate

protected void serveTemplate(String requestUri,
                             String appName,
                             String pageUri,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

needsInitialUser

protected boolean needsInitialUser(String engineName)
                            throws IOException,
                                   javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

serveIndexPage

protected void serveIndexPage(String appName,
                              String engineName,
                              String contextPath,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException
Throws:
IOException

replacePlaceholder

protected String replacePlaceholder(String data,
                                    String appName,
                                    String engineName,
                                    String contextPath,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)

createPluginPackagesStr

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

createPluginDependenciesStr

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

getPlugins

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


Copyright © 2018 camunda services GmbH. All rights reserved.