org.melati.util
Class ReconstructedHttpServletRequest

Package class diagram package ReconstructedHttpServletRequest
java.lang.Object
  extended by org.melati.util.DelegatedHttpServletRequest
      extended by org.melati.util.ReconstructedHttpServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ReconstructedHttpServletRequest
extends DelegatedHttpServletRequest

An HttpServletRequest created from values stored in the Session. Used during login to be able to return to the point where an AccessPoemException was thrown once the user has successfully logged in.


Field Summary
 
Fields inherited from class org.melati.util.DelegatedHttpServletRequest
peer
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ReconstructedHttpServletRequest(HttpServletRequestParameters oldParams, javax.servlet.http.HttpServletRequest newRequest)
          Constructor.
 
Method Summary
 String getMethod()
          From the old request.
 javax.servlet.http.HttpServletRequest getNewRequest()
           
 String getParameter(String name)
          From the old request.
 Enumeration<String> getParameterNames()
          From the old request.
 String[] getParameterValues(String name)
          From the old request.
 void setNewRequest(javax.servlet.http.HttpServletRequest newRequest)
          Set the peer property.
 
Methods inherited from class org.melati.util.DelegatedHttpServletRequest
getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, setAttribute, setCharacterEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconstructedHttpServletRequest

public ReconstructedHttpServletRequest(HttpServletRequestParameters oldParams,
                                       javax.servlet.http.HttpServletRequest newRequest)
                                throws ReconstructedHttpServletRequestMismatchException
Constructor.

Parameters:
oldParams - parameters from original request
newRequest - the new request to add parameters to
Throws:
ReconstructedHttpServletRequestMismatchException
Method Detail

setNewRequest

public void setNewRequest(javax.servlet.http.HttpServletRequest newRequest)
Set the peer property.

Parameters:
newRequest - the request to set as peer

getNewRequest

public javax.servlet.http.HttpServletRequest getNewRequest()
Returns:
the new request

getParameter

public String getParameter(String name)
From the old request.

Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class DelegatedHttpServletRequest
See Also:
ServletRequest.getParameter(java.lang.String)

getParameterValues

public String[] getParameterValues(String name)
From the old request.

Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class DelegatedHttpServletRequest
See Also:
ServletRequest.getParameterValues(java.lang.String)

getParameterNames

public Enumeration<String> getParameterNames()
From the old request.

Specified by:
getParameterNames in interface javax.servlet.ServletRequest
Overrides:
getParameterNames in class DelegatedHttpServletRequest
See Also:
ServletRequest.getParameterNames()

getMethod

public String getMethod()
From the old request.

Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest
Overrides:
getMethod in class DelegatedHttpServletRequest
See Also:
HttpServletRequest.getMethod()


Copyright © 2000-2010 PanEris. All Rights Reserved.