Class LocaleSelectionFilter
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectionFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@WebFilter(filterName="Locale selection filter", urlPatterns="/*") public class LocaleSelectionFilter extends Object implements javax.servlet.FilterCheck for a Locale in the ServletContext or the Session that should override the Locale in the ServletRequest. If there is such a Locale, wrap the ServletRequest so it behaves as if that is the preferred Locale. Otherwise, just process the request as usual.
-
-
Constructor Summary
Constructors Constructor Description LocaleSelectionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
-