org.camunda.bpm.webapp.impl.engine
Class ProcessEnginesFilter
java.lang.Object
org.camunda.bpm.webapp.impl.filter.AbstractTemplateFilter
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
|
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
|
createPluginDependenciesStr(String appName)
|
protected
|
createPluginPackagesStr(String appName,
String contextPath)
|
protected String |
getDefaultEngineName()
|
protected
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ProcessEnginesFilter
public ProcessEnginesFilter()
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.