net.sourceforge.blogentis.slide
Class MutablePrincipalHttpRequestWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended bynet.sourceforge.blogentis.slide.MutablePrincipalHttpRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

class MutablePrincipalHttpRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper


Field Summary
protected  int contentLength
           
protected  java.lang.String contentType
           
protected  java.lang.String contextPath
           
protected  java.util.Map headers
           
protected  javax.servlet.ServletInputStream inputStream
           
protected  java.lang.String method
           
protected  java.security.Principal p
           
protected  java.lang.String pathInfo
           
protected  javax.servlet.http.HttpServletRequest req
           
protected  java.lang.String servletPath
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MutablePrincipalHttpRequestWrapper(javax.servlet.http.HttpServletRequest request, java.security.Principal p)
           
 
Method Summary
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getContextPath()
           
 java.lang.String getHeader(java.lang.String arg0)
           
 java.util.Enumeration getHeaderNames()
           
 java.util.Enumeration getHeaders(java.lang.String arg0)
           
 javax.servlet.ServletInputStream getInputStream()
           
 int getIntHeader(java.lang.String arg0)
           
 java.lang.String getMethod()
           
 java.lang.String getPathInfo()
           
 java.lang.String getServletPath()
           
 java.security.Principal getUserPrincipal()
           
 void setContentLength(int contentLength)
           
 void setContentType(java.lang.String contentType)
           
 void setContextPath(java.lang.String contextPath)
           
 void setHeader(java.lang.String header, java.lang.String value)
           
 void setInputStream(java.io.InputStream is)
           
 void setMethod(java.lang.String method)
           
 void setPathInfo(java.lang.String pathInfo)
           
 void setServletPath(java.lang.String servletPath)
           
 void setUserPrincipal(java.security.Principal u)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getCookies, getDateHeader, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getLocale, getLocales, getParameter, 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, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

contentLength

protected int contentLength

contentType

protected java.lang.String contentType

contextPath

protected java.lang.String contextPath

headers

protected java.util.Map headers

inputStream

protected javax.servlet.ServletInputStream inputStream

method

protected java.lang.String method

p

protected java.security.Principal p

pathInfo

protected java.lang.String pathInfo

req

protected javax.servlet.http.HttpServletRequest req

servletPath

protected java.lang.String servletPath
Constructor Detail

MutablePrincipalHttpRequestWrapper

public MutablePrincipalHttpRequestWrapper(javax.servlet.http.HttpServletRequest request,
                                          java.security.Principal p)
Method Detail

getContentLength

public int getContentLength()

getContentType

public java.lang.String getContentType()

getContextPath

public java.lang.String getContextPath()

getHeader

public java.lang.String getHeader(java.lang.String arg0)

getHeaderNames

public java.util.Enumeration getHeaderNames()

getHeaders

public java.util.Enumeration getHeaders(java.lang.String arg0)

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws java.io.IOException
Throws:
java.io.IOException

getIntHeader

public int getIntHeader(java.lang.String arg0)

getMethod

public java.lang.String getMethod()

getPathInfo

public java.lang.String getPathInfo()

getServletPath

public java.lang.String getServletPath()

getUserPrincipal

public java.security.Principal getUserPrincipal()

setContentLength

public void setContentLength(int contentLength)

setContentType

public void setContentType(java.lang.String contentType)

setContextPath

public void setContextPath(java.lang.String contextPath)

setHeader

public void setHeader(java.lang.String header,
                      java.lang.String value)

setInputStream

public void setInputStream(java.io.InputStream is)

setMethod

public void setMethod(java.lang.String method)

setPathInfo

public void setPathInfo(java.lang.String pathInfo)

setServletPath

public void setServletPath(java.lang.String servletPath)

setUserPrincipal

public void setUserPrincipal(java.security.Principal u)


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.