org.apache.cactus.server
class AbstractHttpServletRequestWrapper

java.lang.Object
  |
  +--org.apache.cactus.server.AbstractHttpServletRequestWrapper
All Implemented Interfaces:
HttpServletRequest, ServletRequest
Direct Known Subclasses:
HttpServletRequestWrapper
Known Advisors:
LogAspect

public abstract class AbstractHttpServletRequestWrapper
extends java.lang.Object
implements HttpServletRequest

Abstract wrapper around HttpServletRequest. This class provides a common implementation of the wrapper for the different servlet API.

Version:
$Id: AbstractHttpServletRequestWrapper.java,v 1.5 2002/07/22 12:26:04 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
AbstractHttpServletRequestWrapper(HttpServletRequest theRequest, ServletURL theURL)
           
 
Method Summary
 Object getAttribute(String theName)
           Affected by: LogAspect
 Enumeration getAttributeNames()
           
 String getAuthType()
           
 String getCharacterEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 String getContextPath()
           
 Cookie[] getCookies()
           
 long getDateHeader(String theName)
           Affected by: LogAspect
 String getHeader(String theName)
           Affected by: LogAspect
 Enumeration getHeaderNames()
           
 Enumeration getHeaders(String theName)
           Affected by: LogAspect
 ServletInputStream getInputStream()
           
 int getIntHeader(String theName)
           Affected by: LogAspect
 Locale getLocale()
           
 Enumeration getLocales()
           
 String getMethod()
           
 HttpServletRequest getOriginalRequest()
           
 String getParameter(String theName)
           Affected by: LogAspect
 Enumeration getParameterNames()
           
 String[] getParameterValues(String theName)
           Affected by: LogAspect
 String getPathInfo()
           
 String getPathTranslated()
           
 String getProtocol()
           
 String getQueryString()
           
 BufferedReader getReader()
           
 String getRealPath(String thePath)
           Affected by: LogAspect
 String getRemoteAddr()
           
 String getRemoteHost()
           
 String getRemoteUser()
           
 RequestDispatcher getRequestDispatcher(String thePath)
           Affected by: LogAspect
 String getRequestURI()
           
 String getRequestedSessionId()
           
 String getScheme()
           
 String getServerName()
           
 int getServerPort()
           
 String getServletPath()
           
 HttpSession getSession()
           
 HttpSession getSession(boolean isCreate)
           Affected by: LogAspect
 Principal getUserPrincipal()
           
 boolean isRequestedSessionIdFromCookie()
           
 boolean isRequestedSessionIdFromURL()
           
 boolean isRequestedSessionIdFromUrl()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(String theRole)
           Affected by: LogAspect
 void removeAttribute(String theName)
           Affected by: LogAspect
 void setAttribute(String theName, Object theAttribute)
           Affected by: LogAspect
 void setRemoteHostName(String theRemoteHostName)
           Affected by: LogAspect
 void setRemoteIPAddress(String theRemoteIPAddress)
           Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpServletRequestWrapper

public AbstractHttpServletRequestWrapper(HttpServletRequest theRequest,
                                         ServletURL theURL)
Method Detail

getAttribute

public Object getAttribute(String theName)
Specified by:
getAttribute in interface ServletRequest
Affected by:
around() in LogAspect.

getAttributeNames

public Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface ServletRequest

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface HttpServletRequest

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface ServletRequest

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface ServletRequest

getContentType

public String getContentType()
Specified by:
getContentType in interface ServletRequest

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface HttpServletRequest

getCookies

public Cookie[] getCookies()
Specified by:
getCookies in interface HttpServletRequest

getDateHeader

public long getDateHeader(String theName)
Specified by:
getDateHeader in interface HttpServletRequest
Affected by:
around() in LogAspect.

getHeader

public String getHeader(String theName)
Specified by:
getHeader in interface HttpServletRequest
Affected by:
around() in LogAspect.

getHeaderNames

public Enumeration getHeaderNames()
Specified by:
getHeaderNames in interface HttpServletRequest

getHeaders

public Enumeration getHeaders(String theName)
Specified by:
getHeaders in interface HttpServletRequest
Affected by:
around() in LogAspect.

getInputStream

public ServletInputStream getInputStream()
                                  throws java.io.IOException
Specified by:
getInputStream in interface ServletRequest

getIntHeader

public int getIntHeader(String theName)
Specified by:
getIntHeader in interface HttpServletRequest
Affected by:
around() in LogAspect.

getLocale

public Locale getLocale()
Specified by:
getLocale in interface ServletRequest

getLocales

public Enumeration getLocales()
Specified by:
getLocales in interface ServletRequest

getMethod

public String getMethod()
Specified by:
getMethod in interface HttpServletRequest

getOriginalRequest

public HttpServletRequest getOriginalRequest()

getParameter

public String getParameter(String theName)
Specified by:
getParameter in interface ServletRequest
Affected by:
around() in LogAspect.

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in interface ServletRequest

getParameterValues

public String[] getParameterValues(String theName)
Specified by:
getParameterValues in interface ServletRequest
Affected by:
around() in LogAspect.

getPathInfo

public String getPathInfo()
Specified by:
getPathInfo in interface HttpServletRequest

getPathTranslated

public String getPathTranslated()
Specified by:
getPathTranslated in interface HttpServletRequest

getProtocol

public String getProtocol()
Specified by:
getProtocol in interface ServletRequest

getQueryString

public String getQueryString()
Specified by:
getQueryString in interface HttpServletRequest

getReader

public BufferedReader getReader()
                         throws java.io.IOException
Specified by:
getReader in interface ServletRequest

getRealPath

public String getRealPath(String thePath)
Specified by:
getRealPath in interface ServletRequest
Affected by:
around() in LogAspect.

getRemoteAddr

public String getRemoteAddr()
Specified by:
getRemoteAddr in interface ServletRequest

getRemoteHost

public String getRemoteHost()
Specified by:
getRemoteHost in interface ServletRequest

getRemoteUser

public String getRemoteUser()
Specified by:
getRemoteUser in interface HttpServletRequest

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String thePath)
Specified by:
getRequestDispatcher in interface ServletRequest
Affected by:
around() in LogAspect.

getRequestURI

public String getRequestURI()
Specified by:
getRequestURI in interface HttpServletRequest

getRequestedSessionId

public String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface HttpServletRequest

getScheme

public String getScheme()
Specified by:
getScheme in interface ServletRequest

getServerName

public String getServerName()
Specified by:
getServerName in interface ServletRequest

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface ServletRequest

getServletPath

public String getServletPath()
Specified by:
getServletPath in interface HttpServletRequest

getSession

public HttpSession getSession()
Specified by:
getSession in interface HttpServletRequest

getSession

public HttpSession getSession(boolean isCreate)
Specified by:
getSession in interface HttpServletRequest
Affected by:
around() in LogAspect.

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface HttpServletRequest

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()
Specified by:
isRequestedSessionIdFromCookie in interface HttpServletRequest

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()
Specified by:
isRequestedSessionIdFromURL in interface HttpServletRequest

isRequestedSessionIdFromUrl

public boolean isRequestedSessionIdFromUrl()
Specified by:
isRequestedSessionIdFromUrl in interface HttpServletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface HttpServletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface ServletRequest

isUserInRole

public boolean isUserInRole(String theRole)
Specified by:
isUserInRole in interface HttpServletRequest
Affected by:
around() in LogAspect.

removeAttribute

public void removeAttribute(String theName)
Specified by:
removeAttribute in interface ServletRequest
Affected by:
around() in LogAspect.

setAttribute

public void setAttribute(String theName,
                         Object theAttribute)
Specified by:
setAttribute in interface ServletRequest
Affected by:
around() in LogAspect.

setRemoteHostName

public void setRemoteHostName(String theRemoteHostName)
Affected by:
around() in LogAspect.

setRemoteIPAddress

public void setRemoteIPAddress(String theRemoteIPAddress)
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.