javawebparts.filter
Class ParameterMungerResWrapper

java.lang.Object
  |
  +--javax.servlet.ServletRequestWrapper
        |
        +--javax.servlet.http.HttpServletRequestWrapper
              |
              +--javawebparts.filter.ParameterMungerResWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ParameterMungerResWrapper
extends javax.servlet.http.HttpServletRequestWrapper

This class is a wrapper capable of doing various operations on the request parameters.

Author:
Frank W. Zammetti.

Field Summary
private  java.util.ArrayList functionList
          The list of functions to be performed.
 
Fields inherited from class javax.servlet.ServletRequestWrapper
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ParameterMungerResWrapper(javax.servlet.http.HttpServletRequest inRequest, java.util.ArrayList inFunctionList)
          Constructor.
 
Method Summary
 java.lang.String getParameter(java.lang.String parameter)
          Called to retrieve a parameter that have been "munged".
 java.lang.String[] getParameterValues(java.lang.String parameter)
          Called to retrieve parameters that have been "munged".
 
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, getLocale, getLocales, getParameterMap, getParameterNames, 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, getLocale, getLocales, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

functionList

private java.util.ArrayList functionList
The list of functions to be performed.

Constructor Detail

ParameterMungerResWrapper

public ParameterMungerResWrapper(javax.servlet.http.HttpServletRequest inRequest,
                                 java.util.ArrayList inFunctionList)
Constructor.

Parameters:
inRequest - HttpServletRequest being serviced.
inFunctionList - ArrayList of functions to perform on parameters.
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String parameter)
Called to retrieve a parameter that have been "munged".

Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper
Parameters:
parameter - A String containing the name of the parameter whose value is requested.
Returns:
A String objects containing the munger value.

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String parameter)
Called to retrieve parameters that have been "munged".

Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper
Parameters:
parameter - A String containing the name of the parameter whose value is requested.
Returns:
An array of String objects containing the parameter's values.


Copyright © 2005 Frank W. Zammetti