public class ApplicationContextFilter extends Object implements Filter
Constructor and Description |
---|
ApplicationContextFilter() |
Modifier and Type | Method and Description |
---|---|
protected Object |
bindRequestBean(Object bean,
ServletRequest request)
Binds properties from the request parameters to the given POJO which is
useful for POJOs which are configurable via request parameters such as
for query/view POJOs
|
protected Map |
createApplicationContextWrapper(org.springframework.web.context.WebApplicationContext context)
Creates a wrapper around the web application context so that it can be
accessed easily from inside JSP EL (or other expression languages in
other view technologies).
|
protected Map |
createRequestContextWrapper(ServletRequest request)
Creates a wrapper around the request context (e.g.
|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
String |
getApplicationContextName() |
protected String |
getInitParameter(FilterConfig config,
String key,
String defaultValue) |
String |
getRequestContextName() |
ServletContext |
getServletContext() |
void |
init(FilterConfig config) |
void |
setApplicationContextName(String variableName) |
void |
setRequestContextName(String requestContextName) |
public ApplicationContextFilter()
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public ServletContext getServletContext()
public String getApplicationContextName()
public void setApplicationContextName(String variableName)
public String getRequestContextName()
public void setRequestContextName(String requestContextName)
protected String getInitParameter(FilterConfig config, String key, String defaultValue)
protected Map createApplicationContextWrapper(org.springframework.web.context.WebApplicationContext context)
protected Map createRequestContextWrapper(ServletRequest request)
protected Object bindRequestBean(Object bean, ServletRequest request)
Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.