public abstract class AbstractClientPluginsFilter<T extends AppPlugin> extends AbstractTemplateFilter
PLUGIN_DEPENDENCIES
and PLUGIN_PACKAGES
in the correct places of the cockpit client
application.
Must be configured appropriately in an applications web.xml
.
Modifier and Type | Field and Description |
---|---|
protected String |
appName |
protected String |
pluginDependencyFormat |
protected String |
pluginPackageFormat |
protected AppRuntimeDelegate<T> |
runtimeDelegate |
Constructor and Description |
---|
AbstractClientPluginsFilter(String appName,
AppRuntimeDelegate<T> runtimeDelegate) |
Modifier and Type | Method and Description |
---|---|
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 CharSequence |
createPluginDependenciesStr() |
protected CharSequence |
createPluginPackagesStr() |
protected List<T> |
getPlugins() |
destroy, doFilter, getWebResourceContents, hasWebResource, init
protected final String pluginPackageFormat
protected final String pluginDependencyFormat
protected final AppRuntimeDelegate<T extends AppPlugin> runtimeDelegate
protected final String appName
public AbstractClientPluginsFilter(String appName, AppRuntimeDelegate<T> runtimeDelegate)
protected void applyFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
AbstractTemplateFilter
applyFilter
in class AbstractTemplateFilter
IOException
javax.servlet.ServletException
protected CharSequence createPluginPackagesStr()
protected CharSequence createPluginDependenciesStr()
Copyright © 2015. All rights reserved.