@WebFilter(filterName="RequestContextServletFilter", urlPatterns="/*") public class RequestContextServletFilter extends Object implements javax.servlet.Filter
RequestContext
.Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAMETER_DISABLE_DEFAULT_LISTENERS
Switch to disable the default listeners.
|
static String |
INIT_PARAMETER_REQUEST_CONTEXT_FACTORY
Set a custom request context factory class.
|
static String |
INIT_PARAMETER_REQUEST_CONTEXT_LISTENERS
Set listener classes initialized by this filter.
|
static String |
INIT_PARAMETER_USE_PARENT_CONTEXT
Switch to be set if the filter is invoked within an existing context.
|
protected RequestContextFactory |
requestContextFactory |
protected RequestContextListenerChain |
requestContextListenerChain |
protected Boolean |
useParentContext |
Constructor and Description |
---|
RequestContextServletFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
loadFactory(String factoryName) |
protected void |
loadListeners(String listenerNames,
Boolean disableDefaultListeners) |
public static final String INIT_PARAMETER_REQUEST_CONTEXT_FACTORY
RequestContextFactory
public static final String INIT_PARAMETER_REQUEST_CONTEXT_LISTENERS
RequestContextListener
.public static final String INIT_PARAMETER_DISABLE_DEFAULT_LISTENERS
public static final String INIT_PARAMETER_USE_PARENT_CONTEXT
protected RequestContextFactory requestContextFactory
protected RequestContextListenerChain requestContextListenerChain
protected Boolean useParentContext
public void init(javax.servlet.FilterConfig filterConfig)
init
in interface javax.servlet.Filter
protected void loadFactory(String factoryName)
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2019 SAP SE. All rights reserved.