yawda.controller
Class CRequestWrapper

java.lang.Object
  extended byyawda.controller.CRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, Serializable, javax.servlet.ServletRequest

public final class CRequestWrapper
extends Object
implements javax.servlet.http.HttpServletRequest, Serializable

Author:
Quentin Anciaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Method Summary
static void addEndRequestListener(IEndRequestListener listen, javax.servlet.http.HttpServletRequest request)
           
static void fireEndRequestEvent(javax.servlet.http.HttpServletRequest request)
           
 Object getAttribute(String arg0)
           
 Enumeration getAttributeNames()
           
 String getAuthType()
           
 String getCharacterEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 String getContextPath()
           
 javax.servlet.http.Cookie[] getCookies()
           
 long getDateHeader(String arg0)
           
 String getHeader(String arg0)
           
 Enumeration getHeaderNames()
           
 Enumeration getHeaders(String arg0)
           
 javax.servlet.ServletInputStream getInputStream()
           
 int getIntHeader(String arg0)
           
 Locale getLocale()
           
 Enumeration getLocales()
           
 String getMethod()
           
 String getParameter(String arg0)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String arg0)
           
 String getPathInfo()
           
 String getPathTranslated()
           
 String getProtocol()
           
 String getQueryString()
           
 BufferedReader getReader()
           
 String getRealPath(String arg0)
           
 String getRemoteAddr()
           
 String getRemoteHost()
           
 String getRemoteUser()
           
static CRequestWrapper getRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 javax.servlet.RequestDispatcher getRequestDispatcher(String arg0)
           
 String getRequestedSessionId()
           
 String getRequestURI()
           
 StringBuffer getRequestURL()
           
 String getScheme()
           
 String getServerName()
           
 int getServerPort()
           
 String getServletPath()
           
 javax.servlet.http.HttpSession getSession()
           
 javax.servlet.http.HttpSession getSession(boolean arg0)
           
 Principal getUserPrincipal()
           
static void init(javax.servlet.ServletContext context)
           
 boolean isRequestedSessionIdFromCookie()
           
 boolean isRequestedSessionIdFromUrl()
           
 boolean isRequestedSessionIdFromURL()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(String arg0)
           
 void removeAttribute(String arg0)
           
 void setAttribute(String arg0, Object arg1)
           
 void setCharacterEncoding(String arg0)
           
 void setUserPrincipal(CPrincipalWrapper wrap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addEndRequestListener

public static final void addEndRequestListener(IEndRequestListener listen,
                                               javax.servlet.http.HttpServletRequest request)

fireEndRequestEvent

public static final void fireEndRequestEvent(javax.servlet.http.HttpServletRequest request)

getRequest

public static final CRequestWrapper getRequest(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)

init

public static final void init(javax.servlet.ServletContext context)

getAuthType

public final String getAuthType()
Specified by:
getAuthType in interface javax.servlet.http.HttpServletRequest

getCookies

public final javax.servlet.http.Cookie[] getCookies()
Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest

getDateHeader

public final long getDateHeader(String arg0)
Specified by:
getDateHeader in interface javax.servlet.http.HttpServletRequest

getHeader

public final String getHeader(String arg0)
Specified by:
getHeader in interface javax.servlet.http.HttpServletRequest

getHeaders

public final Enumeration getHeaders(String arg0)
Specified by:
getHeaders in interface javax.servlet.http.HttpServletRequest

getHeaderNames

public final Enumeration getHeaderNames()
Specified by:
getHeaderNames in interface javax.servlet.http.HttpServletRequest

getIntHeader

public final int getIntHeader(String arg0)
Specified by:
getIntHeader in interface javax.servlet.http.HttpServletRequest

getMethod

public final String getMethod()
Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest

getPathInfo

public final String getPathInfo()
Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest

getPathTranslated

public final String getPathTranslated()
Specified by:
getPathTranslated in interface javax.servlet.http.HttpServletRequest

getContextPath

public final String getContextPath()
Specified by:
getContextPath in interface javax.servlet.http.HttpServletRequest

getQueryString

public final String getQueryString()
Specified by:
getQueryString in interface javax.servlet.http.HttpServletRequest

getRemoteUser

public final String getRemoteUser()
Specified by:
getRemoteUser in interface javax.servlet.http.HttpServletRequest

isUserInRole

public final boolean isUserInRole(String arg0)
Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest

getUserPrincipal

public final Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest

setUserPrincipal

public final void setUserPrincipal(CPrincipalWrapper wrap)

getRequestedSessionId

public final String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest

getRequestURI

public final String getRequestURI()
Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest

getRequestURL

public final StringBuffer getRequestURL()
Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest

getServletPath

public final String getServletPath()
Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest

getSession

public final javax.servlet.http.HttpSession getSession(boolean arg0)
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getSession

public final javax.servlet.http.HttpSession getSession()
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdValid

public final boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromCookie

public final boolean isRequestedSessionIdFromCookie()
Specified by:
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromURL

public final boolean isRequestedSessionIdFromURL()
Specified by:
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromUrl

public final boolean isRequestedSessionIdFromUrl()
Specified by:
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest

getAttribute

public final Object getAttribute(String arg0)
Specified by:
getAttribute in interface javax.servlet.ServletRequest

getAttributeNames

public final Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.ServletRequest

getCharacterEncoding

public final String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest

setCharacterEncoding

public final void setCharacterEncoding(String arg0)
                                throws UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Throws:
UnsupportedEncodingException

getContentLength

public final int getContentLength()
Specified by:
getContentLength in interface javax.servlet.ServletRequest

getContentType

public final String getContentType()
Specified by:
getContentType in interface javax.servlet.ServletRequest

getInputStream

public final javax.servlet.ServletInputStream getInputStream()
                                                      throws IOException
Specified by:
getInputStream in interface javax.servlet.ServletRequest
Throws:
IOException

getParameter

public final String getParameter(String arg0)
Specified by:
getParameter in interface javax.servlet.ServletRequest

getParameterNames

public final Enumeration getParameterNames()
Specified by:
getParameterNames in interface javax.servlet.ServletRequest

getParameterValues

public final String[] getParameterValues(String arg0)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest

getParameterMap

public final Map getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest

getProtocol

public final String getProtocol()
Specified by:
getProtocol in interface javax.servlet.ServletRequest

getScheme

public final String getScheme()
Specified by:
getScheme in interface javax.servlet.ServletRequest

getServerName

public final String getServerName()
Specified by:
getServerName in interface javax.servlet.ServletRequest

getServerPort

public final int getServerPort()
Specified by:
getServerPort in interface javax.servlet.ServletRequest

getReader

public final BufferedReader getReader()
                               throws IOException
Specified by:
getReader in interface javax.servlet.ServletRequest
Throws:
IOException

getRemoteAddr

public final String getRemoteAddr()
Specified by:
getRemoteAddr in interface javax.servlet.ServletRequest

getRemoteHost

public final String getRemoteHost()
Specified by:
getRemoteHost in interface javax.servlet.ServletRequest

setAttribute

public final void setAttribute(String arg0,
                               Object arg1)
Specified by:
setAttribute in interface javax.servlet.ServletRequest

removeAttribute

public final void removeAttribute(String arg0)
Specified by:
removeAttribute in interface javax.servlet.ServletRequest

getLocale

public final Locale getLocale()
Specified by:
getLocale in interface javax.servlet.ServletRequest

getLocales

public final Enumeration getLocales()
Specified by:
getLocales in interface javax.servlet.ServletRequest

isSecure

public final boolean isSecure()
Specified by:
isSecure in interface javax.servlet.ServletRequest

getRequestDispatcher

public final javax.servlet.RequestDispatcher getRequestDispatcher(String arg0)
Specified by:
getRequestDispatcher in interface javax.servlet.ServletRequest

getRealPath

public final String getRealPath(String arg0)
Specified by:
getRealPath in interface javax.servlet.ServletRequest