uPortal 2.4.1
API Documentation

org.jasig.portal
Class RequestParamWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended byorg.jasig.portal.RequestParamWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class RequestParamWrapper
extends javax.servlet.http.HttpServletRequestWrapper

Wraps an http request object to prevent unverified requests from accessing any of the request parameters.

Version:
$Revision: 1.8.2.4 $
Author:
Peter Kharchenko

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
RequestParamWrapper(javax.servlet.http.HttpServletRequest source, boolean request_verified, boolean isPortletAction)
          Creates a new RequestParamWrapper instance.
 
Method Summary
 java.lang.Object[] getObjectParameterValues(java.lang.String name)
          Return the Object represented by this parameter name
 java.lang.String getParameter(java.lang.String name)
          Overloaded method
 java.util.Map getParameterMap()
          Overloaded method
 java.util.Enumeration getParameterNames()
          Overloaded method
 java.lang.String[] getParameterValues(java.lang.String name)
          Return a String[] for this parameter
 
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, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

RequestParamWrapper

public RequestParamWrapper(javax.servlet.http.HttpServletRequest source,
                           boolean request_verified,
                           boolean isPortletAction)
Creates a new RequestParamWrapper instance.

Parameters:
source - an HttpServletRequest value that's being wrapped.
request_verified - a boolean flag that determines if the request params should be accessable.
isPortletAction - a boolean flag indicating if a portlet is currently being interacted with (in the case for a probable upload attempt).
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String name)
Overloaded method

Parameters:
name - the parameter name
Returns:
parameter

getParameterNames

public java.util.Enumeration getParameterNames()
Overloaded method

Returns:
parameter names

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Return a String[] for this parameter

Parameters:
name - the parameter name
Returns:
String[] if parameter is not an Object[]

getParameterMap

public java.util.Map getParameterMap()
Overloaded method

Returns:
a Map value

getObjectParameterValues

public java.lang.Object[] getObjectParameterValues(java.lang.String name)
Return the Object represented by this parameter name

Parameters:
name - the parameter name
Returns:
Object

uPortal 2.4.1
API Documentation