org.appfuse.webapp.filter
Class LocaleRequestWrapper

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.appfuse.webapp.filter.LocaleRequestWrapper
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class LocaleRequestWrapper
extends HttpServletRequestWrapper

HttpRequestWrapper overriding methods getLocale(), getLocales() to include the user's preferred locale.


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
LocaleRequestWrapper(HttpServletRequest decorated, Locale userLocale)
           
 
Method Summary
 Locale getLocale()
           
 Enumeration getLocales()
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

LocaleRequestWrapper

public LocaleRequestWrapper(HttpServletRequest decorated,
                            Locale userLocale)
Method Detail

getLocale

public Locale getLocale()
Specified by:
getLocale in interface ServletRequest
Overrides:
getLocale in class ServletRequestWrapper
See Also:
ServletRequestWrapper.getLocale()

getLocales

public Enumeration getLocales()
Specified by:
getLocales in interface ServletRequest
Overrides:
getLocales in class ServletRequestWrapper
See Also:
ServletRequestWrapper.getLocales()


Copyright � 2002-2006