at.gv.egiz.pdfas.web.i18n
Class LocaleParamFilter

java.lang.Object
  extended byat.gv.egiz.pdfas.web.i18n.LocaleParamFilter
All Implemented Interfaces:
Filter

public class LocaleParamFilter
extends Object
implements Filter


Field Summary
static String LOCALE_PARAM_KEY
           
static String LOCALE_SESSION_KEY
           
 
Constructor Summary
LocaleParamFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
           
static Locale getLocale(HttpServletRequest request)
           
 void init(FilterConfig filterConfig)
           
static String normalizeLocaleString(String localeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE_SESSION_KEY

public static final String LOCALE_SESSION_KEY
See Also:
Constant Field Values

LOCALE_PARAM_KEY

public static final String LOCALE_PARAM_KEY
See Also:
Constant Field Values
Constructor Detail

LocaleParamFilter

public LocaleParamFilter()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface Filter

normalizeLocaleString

public static String normalizeLocaleString(String localeString)

getLocale

public static Locale getLocale(HttpServletRequest request)

doFilter

public void doFilter(ServletRequest servletRequest,
                     ServletResponse servletResponse,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

init

public void init(FilterConfig filterConfig)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException


Copyright © 2006-2010. All Rights Reserved.