com.atlassian.confluence.web.filter
Class LanguageExtractionFilter

java.lang.Object
  extended by com.atlassian.core.filters.AbstractHttpFilter
      extended by com.atlassian.confluence.web.filter.LanguageExtractionFilter
All Implemented Interfaces:
javax.servlet.Filter

public class LanguageExtractionFilter
extends com.atlassian.core.filters.AbstractHttpFilter

Extracts the language cookie, or if it is not present the browser language string


Field Summary
protected  com.atlassian.util.concurrent.Supplier<LocaleManager> localeManager
           
 
Constructor Summary
LanguageExtractionFilter()
           
 
Method Summary
protected  void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
           
protected  LocaleManager getLocaleManager()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class com.atlassian.core.filters.AbstractHttpFilter
destroy, doFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localeManager

protected com.atlassian.util.concurrent.Supplier<LocaleManager> localeManager
Constructor Detail

LanguageExtractionFilter

public LanguageExtractionFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class com.atlassian.core.filters.AbstractHttpFilter
Throws:
javax.servlet.ServletException

doFilter

protected void doFilter(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        javax.servlet.FilterChain filterChain)
                 throws java.io.IOException,
                        javax.servlet.ServletException
Specified by:
doFilter in class com.atlassian.core.filters.AbstractHttpFilter
Throws:
java.io.IOException
javax.servlet.ServletException

getLocaleManager

protected LocaleManager getLocaleManager()


Copyright © 2003-2014 Atlassian. All Rights Reserved.