org.apache.jetspeed.engine.servlet
Class ServletRequestImpl

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended byorg.apache.jetspeed.engine.servlet.ServletRequestImpl
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ServletRequestImpl
extends javax.servlet.http.HttpServletRequestWrapper

This request wrappers the servlet request and is used within the container to communicate to the invoked servlet.

Version:
$Id: ServletRequestImpl.java 188577 2005-05-17 15:57:13Z ate $
Author:
David Sean Taylor

Field Summary
static String ACCEPT_LANGUAGE
           
private  javax.servlet.ServletRequest currentRequest
           
private static org.apache.commons.logging.Log log
          Logger
private  JetspeedNamespaceMapper nameSpaceMapper
           
private  Map portletParameters
           
(package private)  org.apache.pluto.om.window.PortletWindow portletWindow
           
private  org.apache.pluto.om.common.ObjectID webAppId
           
 
Fields inherited from class javax.servlet.ServletRequestWrapper
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ServletRequestImpl(javax.servlet.http.HttpServletRequest servletRequest, org.apache.pluto.om.window.PortletWindow window)
           
 
Method Summary
protected  javax.servlet.http.HttpServletRequest _getHttpServletRequest()
           
 Object getAttribute(String name)
           
 String getContextPath()
           
 String getHeader(String name)
           
 Enumeration getHeaderNames()
           getHeaderNames
 Enumeration getHeaders(String name)
           
 Locale getLocale()
           
protected  Enumeration getLocaleEnum(Locale preferedLocale)
           getLocaleEnum
 Enumeration getLocales()
           
 String getParameter(String name)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String name)
           
 String getPathInfo()
           
 String getPathTranslated()
           
 String getProtocol()
           
 String getQueryString()
           
 String getRealPath()
           
 String getRemoteAddr()
           
 String getRemoteHost()
           
 String getRequestURI()
           
 StringBuffer getRequestURL()
           
 String getServletPath()
           
 void setAttribute(String name, Object value)
           setAttribute
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getCookies, getDateHeader, getIntHeader, getMethod, getRemoteUser, getRequestedSessionId, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getReader, getRealPath, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, 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
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getReader, getRealPath, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setCharacterEncoding
 

Field Detail

ACCEPT_LANGUAGE

public static final String ACCEPT_LANGUAGE
See Also:
Constant Field Values

log

private static final org.apache.commons.logging.Log log
Logger


portletWindow

org.apache.pluto.om.window.PortletWindow portletWindow

nameSpaceMapper

private JetspeedNamespaceMapper nameSpaceMapper

currentRequest

private javax.servlet.ServletRequest currentRequest

portletParameters

private Map portletParameters

webAppId

private org.apache.pluto.om.common.ObjectID webAppId
Constructor Detail

ServletRequestImpl

public ServletRequestImpl(javax.servlet.http.HttpServletRequest servletRequest,
                          org.apache.pluto.om.window.PortletWindow window)
Method Detail

_getHttpServletRequest

protected javax.servlet.http.HttpServletRequest _getHttpServletRequest()

getParameter

public String getParameter(String name)

getParameterMap

public Map getParameterMap()

getParameterNames

public Enumeration getParameterNames()

getParameterValues

public String[] getParameterValues(String name)

getAttribute

public Object getAttribute(String name)
See Also:
ServletRequest.getAttribute(java.lang.String)

getLocale

public Locale getLocale()
See Also:
ServletRequest.getLocale()

getLocales

public Enumeration getLocales()
See Also:
ServletRequest.getLocales()

getLocaleEnum

protected Enumeration getLocaleEnum(Locale preferedLocale)

getLocaleEnum

Parameters:
preferedLocale -
Returns:

getHeader

public String getHeader(String name)
See Also:
HttpServletRequest.getHeader(java.lang.String)

getHeaders

public Enumeration getHeaders(String name)
See Also:
HttpServletRequest.getHeaders(java.lang.String)

setAttribute

public void setAttribute(String name,
                         Object value)

setAttribute

See Also:
ServletRequest.setAttribute(java.lang.String, java.lang.Object)

getHeaderNames

public Enumeration getHeaderNames()

getHeaderNames

Returns:
See Also:
HttpServletRequest.getHeaderNames()

getProtocol

public String getProtocol()

getRemoteAddr

public String getRemoteAddr()

getRemoteHost

public String getRemoteHost()

getRealPath

public String getRealPath()

getRequestURL

public StringBuffer getRequestURL()

getPathInfo

public String getPathInfo()

getPathTranslated

public String getPathTranslated()

getQueryString

public String getQueryString()

getRequestURI

public String getRequestURI()

getServletPath

public String getServletPath()

getContextPath

public String getContextPath()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.