org.apache.cocoon.portal.pluto.servlet
Class ServletRequestImpl

java.lang.Object
  extended by javax.servlet.http.HttpServletRequestWrapper
      extended by org.apache.cocoon.portal.pluto.servlet.ServletRequestImpl
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class ServletRequestImpl
extends HttpServletRequestWrapper

Our request wrapper.

Version:
CVS $Id: ServletRequestImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  HttpServletRequest cachedRequest
          Request object used for portletParameterMap.
protected  HttpServletRequest originalRequest
          Original Request.
protected  Map portletParameterMap
          Cache the parameter map.
protected  PortletURLProviderImpl provider
           
protected  org.apache.pluto.om.window.PortletWindow window
           
 
Constructor Summary
ServletRequestImpl(HttpServletRequest request, PortletURLProviderImpl provider)
           
 
Method Summary
 String getContentType()
           
 String getContextPath()
          JST-168 PLT.16.3.3 cxxxi
 String getParameter(String name)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String name)
           
 String getPathInfo()
          JST-168 PLT.16.3.3 cxxx
 String getPathTranslated()
          JST-168 PLT.16.3.3 cxxx
 String getProtocol()
          JST-168 PLT.16.3.3 cxxix
 String getQueryString()
          JST-168 PLT.16.3.3 cxxx
 String getRemoteAddr()
          JST-168 PLT.16.3.3 cxxix
 String getRemoteHost()
          JST-168 PLT.16.3.3 cxxix
 ServletRequestImpl getRequest(org.apache.pluto.om.window.PortletWindow window)
           
 String getRequestURI()
          JST-168 PLT.16.3.3 cxxx
 StringBuffer getRequestURL()
          JST-168 PLT.16.3.3 cxxix
 String getServletPath()
          JST-168 PLT.16.3.3 cxxx
 void setCharacterEncoding(String arg0)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocale, getLocales, getMethod, getReader, getRealPath, getRemoteUser, getRequest, getRequestDispatcher, getRequestedSessionId, getScheme, getServerName, getServerPort, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletParameterMap

protected Map portletParameterMap
Cache the parameter map.


cachedRequest

protected HttpServletRequest cachedRequest
Request object used for portletParameterMap.


originalRequest

protected final HttpServletRequest originalRequest
Original Request.


provider

protected final PortletURLProviderImpl provider

window

protected final org.apache.pluto.om.window.PortletWindow window
Constructor Detail

ServletRequestImpl

public ServletRequestImpl(HttpServletRequest request,
                          PortletURLProviderImpl provider)
Method Detail

getRequest

public ServletRequestImpl getRequest(org.apache.pluto.om.window.PortletWindow window)

setCharacterEncoding

public void setCharacterEncoding(String arg0)
                          throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException
See Also:
javax.servlet.ServletRequest#setCharacterEncoding(java.lang.String)

getContentType

public String getContentType()
Specified by:
getContentType in interface ServletRequest
Overrides:
getContentType in class HttpServletRequestWrapper
See Also:
ServletRequest.getContentType()

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface ServletRequest
Overrides:
getParameter in class HttpServletRequestWrapper
See Also:
ServletRequest.getParameter(java.lang.String)

getParameterMap

public Map getParameterMap()
See Also:
javax.servlet.ServletRequest#getParameterMap()

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in interface ServletRequest
Overrides:
getParameterNames in class HttpServletRequestWrapper
See Also:
ServletRequest.getParameterNames()

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface ServletRequest
Overrides:
getParameterValues in class HttpServletRequestWrapper
See Also:
ServletRequest.getParameterValues(java.lang.String)

getProtocol

public String getProtocol()
JST-168 PLT.16.3.3 cxxix

Specified by:
getProtocol in interface ServletRequest
Overrides:
getProtocol in class HttpServletRequestWrapper
See Also:
ServletRequest.getProtocol()

getRemoteAddr

public String getRemoteAddr()
JST-168 PLT.16.3.3 cxxix

Specified by:
getRemoteAddr in interface ServletRequest
Overrides:
getRemoteAddr in class HttpServletRequestWrapper
See Also:
ServletRequest.getRemoteAddr()

getRemoteHost

public String getRemoteHost()
JST-168 PLT.16.3.3 cxxix

Specified by:
getRemoteHost in interface ServletRequest
Overrides:
getRemoteHost in class HttpServletRequestWrapper
See Also:
ServletRequest.getRemoteHost()

getRequestURL

public StringBuffer getRequestURL()
JST-168 PLT.16.3.3 cxxix

See Also:
javax.servlet.http.HttpServletRequest#getRequestURL()

getPathInfo

public String getPathInfo()
JST-168 PLT.16.3.3 cxxx

Specified by:
getPathInfo in interface HttpServletRequest
Overrides:
getPathInfo in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getPathInfo()

getPathTranslated

public String getPathTranslated()
JST-168 PLT.16.3.3 cxxx

Specified by:
getPathTranslated in interface HttpServletRequest
Overrides:
getPathTranslated in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getPathTranslated()

getQueryString

public String getQueryString()
JST-168 PLT.16.3.3 cxxx

Specified by:
getQueryString in interface HttpServletRequest
Overrides:
getQueryString in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getQueryString()

getRequestURI

public String getRequestURI()
JST-168 PLT.16.3.3 cxxx

Specified by:
getRequestURI in interface HttpServletRequest
Overrides:
getRequestURI in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getRequestURI()

getServletPath

public String getServletPath()
JST-168 PLT.16.3.3 cxxx

Specified by:
getServletPath in interface HttpServletRequest
Overrides:
getServletPath in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getServletPath()

getContextPath

public String getContextPath()
JST-168 PLT.16.3.3 cxxxi

Specified by:
getContextPath in interface HttpServletRequest
Overrides:
getContextPath in class HttpServletRequestWrapper
See Also:
HttpServletRequest.getContextPath()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.