Constructor and Description |
---|
GlobalLocalizationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Run the filter
|
void |
init(FilterConfig filterConfig) |
void |
setLanguageFromRequestHeader(HttpServletRequest req)
Apply Client and Repository language locale based on the 'Accept-Language' request header
|
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
request
- ServletRequestresponse
- ServletResponsechain
- FilterChainIOException
ServletException
public void setLanguageFromRequestHeader(HttpServletRequest req)
req
- HttpServletRequestpublic void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
ServletException
Copyright © 2005–2017 Alfresco Software. All rights reserved.