com.go.teaservlet.util
Class DecodedRequest

java.lang.Object
  |
  +--com.go.teaservlet.util.FilteredHttpServletRequest
        |
        +--com.go.teaservlet.util.DecodedRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class DecodedRequest
extends FilteredHttpServletRequest

A convenience HttpServletRequest wrapper that automatically decodes request parameters using the provided character encoding.

Version:
13 , 9/07/00
Author:
Brian S O'Neill

Fields inherited from class com.go.teaservlet.util.FilteredHttpServletRequest
mRequest
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
DecodedRequest(javax.servlet.http.HttpServletRequest request, java.lang.String encoding)
           
 
Method Summary
 java.lang.String getCharacterEncoding()
           
 java.lang.String getParameter(java.lang.String name)
           
 java.lang.String[] getParameterValues(java.lang.String name)
           
 
Methods inherited from class com.go.teaservlet.util.FilteredHttpServletRequest
getAttribute, getAttributeNames, getAuthType, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocale, getLocales, getMethod, getParameterMap, getParameterNames, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, setAttribute, setCharacterEncoding, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecodedRequest

public DecodedRequest(javax.servlet.http.HttpServletRequest request,
                      java.lang.String encoding)
Parameters:
request - wrapped request
encoding - character encoding to apply to request parameters
Throws:
java.lang.IllegalArgumentException - when the encoding isn't supported
Method Detail

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Overrides:
getCharacterEncoding in class FilteredHttpServletRequest

getParameter

public java.lang.String getParameter(java.lang.String name)
Overrides:
getParameter in class FilteredHttpServletRequest

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Overrides:
getParameterValues in class FilteredHttpServletRequest