org.edg.security.authorization
Class ServletRequestWrapper

java.lang.Object
  |
  +--javax.servlet.ServletRequestWrapper
        |
        +--javax.servlet.http.HttpServletRequestWrapper
              |
              +--org.edg.security.authorization.RequestWrapper
                    |
                    +--org.edg.security.authorization.ServletRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ServletRequestWrapper
extends RequestWrapper

Subclass of the abstract RequestWrapper. Allows the passing of some authorization information inside a parameter defined through Config class or configuration file. Overrides the getParameter() method so that the application can fetch the authorization information by this method.

Version:
$Id: ServletRequestWrapper.java,v 1.3 2003/09/19 09:08:49 gianluca Exp $
Author:
Niklas Karlsson HIP

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ServletRequestWrapper(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 java.lang.String getParameter(java.lang.String name)
          Returns getParameter(String name) on the wrapped request object
 boolean initWrapper(Config configurator)
           
 
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, 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, getLocale, getLocales, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

ServletRequestWrapper

public ServletRequestWrapper(javax.servlet.http.HttpServletRequest request)
Method Detail

initWrapper

public boolean initWrapper(Config configurator)
Specified by:
initWrapper in class RequestWrapper

getParameter

public java.lang.String getParameter(java.lang.String name)
Returns getParameter(String name) on the wrapped request object

Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper
Parameters:
name - the parameter name
Returns:
the value of the parameter