org.apache.jetspeed.engine.servlet
Class ServletRequestImpl
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.apache.jetspeed.engine.servlet.ServletRequestImpl
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, org.apache.jetspeed.container.PortletDispatcherIncludeAware
public class ServletRequestImpl
- extends javax.servlet.http.HttpServletRequestWrapper
- implements org.apache.jetspeed.container.PortletDispatcherIncludeAware
This request wrappers the servlet request and is used within the container to
communicate to the invoked servlet.
- Version:
- $Id: ServletRequestImpl.java 587064 2007-10-22 11:54:11Z woonsan $
- Author:
- David Sean Taylor
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)
|
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 |
getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, 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 |
getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure |
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
included
private boolean included
mergePortalParametersWithPortletParameters
private static Boolean mergePortalParametersWithPortletParameters
mergePortalParametersBeforePortletParameters
private static Boolean mergePortalParametersBeforePortletParameters
portletMergePortalParametersWithPortletParameters
private boolean portletMergePortalParametersWithPortletParameters
portletMergePortalParametersBeforePortletParameters
private boolean portletMergePortalParametersBeforePortletParameters
portalParameters
private Map portalParameters
currentIncludeQueryString
private String currentIncludeQueryString
currentForwardQueryString
private String currentForwardQueryString
cachedAttributes
private Map cachedAttributes
ServletRequestImpl
public ServletRequestImpl(javax.servlet.http.HttpServletRequest servletRequest,
org.apache.pluto.om.window.PortletWindow window)
getMetaDataBooleanValue
private boolean getMetaDataBooleanValue(org.apache.jetspeed.om.common.GenericMetadata metaData,
String fieldName,
boolean defaultValue)
_getHttpServletRequest
protected javax.servlet.http.HttpServletRequest _getHttpServletRequest()
getParameter
public String getParameter(String name)
- Specified by:
getParameter
in interface javax.servlet.ServletRequest
- Overrides:
getParameter
in class javax.servlet.ServletRequestWrapper
isEqual
private boolean isEqual(String one,
String two)
checkQueryStringChanged
private boolean checkQueryStringChanged()
getParameterMap
public Map getParameterMap()
- Specified by:
getParameterMap
in interface javax.servlet.ServletRequest
- Overrides:
getParameterMap
in class javax.servlet.ServletRequestWrapper
getParameterNames
public Enumeration getParameterNames()
- Specified by:
getParameterNames
in interface javax.servlet.ServletRequest
- Overrides:
getParameterNames
in class javax.servlet.ServletRequestWrapper
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValues
in interface javax.servlet.ServletRequest
- Overrides:
getParameterValues
in class javax.servlet.ServletRequestWrapper
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface javax.servlet.ServletRequest
- Overrides:
getAttributeNames
in class javax.servlet.ServletRequestWrapper
- See Also:
ServletRequest.getAttributeNames()
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface javax.servlet.ServletRequest
- Overrides:
getAttribute
in class javax.servlet.ServletRequestWrapper
- See Also:
ServletRequest.getAttribute(java.lang.String)
getAttributeInternal
private Object getAttributeInternal(String name)
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface javax.servlet.ServletRequest
- Overrides:
getLocale
in class javax.servlet.ServletRequestWrapper
- See Also:
ServletRequest.getLocale()
getLocales
public Enumeration getLocales()
- Specified by:
getLocales
in interface javax.servlet.ServletRequest
- Overrides:
getLocales
in class javax.servlet.ServletRequestWrapper
- See Also:
ServletRequest.getLocales()
getLocaleEnum
protected Enumeration getLocaleEnum(Locale preferedLocale)
getLocaleEnum
- Parameters:
preferedLocale
-
- Returns:
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequest.getHeader(java.lang.String)
getHeaders
public Enumeration getHeaders(String name)
- Specified by:
getHeaders
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeaders
in class javax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequest.getHeaders(java.lang.String)
setAttribute
public void setAttribute(String name,
Object value)
setAttribute
- Specified by:
setAttribute
in interface javax.servlet.ServletRequest
- Overrides:
setAttribute
in class javax.servlet.ServletRequestWrapper
- Parameters:
arg0
- arg1
- - See Also:
ServletRequest.setAttribute(java.lang.String,
java.lang.Object)
setAttributeInternal
private void setAttributeInternal(String name,
Object value)
removeAttribute
public void removeAttribute(String name)
removeAttribute
- Specified by:
removeAttribute
in interface javax.servlet.ServletRequest
- Overrides:
removeAttribute
in class javax.servlet.ServletRequestWrapper
- Parameters:
arg0
- - See Also:
ServletRequest.removeAttribute(java.lang.String)
getHeaderNames
public Enumeration getHeaderNames()
getHeaderNames
- Specified by:
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeaderNames
in class javax.servlet.http.HttpServletRequestWrapper
- Returns:
- See Also:
HttpServletRequest.getHeaderNames()
setPortletDispatcherIncluded
public void setPortletDispatcherIncluded(boolean included)
- Specified by:
setPortletDispatcherIncluded
in interface org.apache.jetspeed.container.PortletDispatcherIncludeAware
- Parameters:
included
- when true, JSR-168 PLT.16.3.3 rules need to be enforced
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interface javax.servlet.ServletRequest
- Overrides:
getProtocol
in class javax.servlet.ServletRequestWrapper
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddr
in interface javax.servlet.ServletRequest
- Overrides:
getRemoteAddr
in class javax.servlet.ServletRequestWrapper
getRemoteHost
public String getRemoteHost()
- Specified by:
getRemoteHost
in interface javax.servlet.ServletRequest
- Overrides:
getRemoteHost
in class javax.servlet.ServletRequestWrapper
getRequestURL
public StringBuffer getRequestURL()
- Specified by:
getRequestURL
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURL
in class javax.servlet.http.HttpServletRequestWrapper
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfo
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getPathInfo
in class javax.servlet.http.HttpServletRequestWrapper
getPathTranslated
public String getPathTranslated()
- Specified by:
getPathTranslated
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getPathTranslated
in class javax.servlet.http.HttpServletRequestWrapper
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getQueryString
in class javax.servlet.http.HttpServletRequestWrapper
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURI
in class javax.servlet.http.HttpServletRequestWrapper
getServletPath
public String getServletPath()
- Specified by:
getServletPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getServletPath
in class javax.servlet.http.HttpServletRequestWrapper
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getContextPath
in class javax.servlet.http.HttpServletRequestWrapper
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interface javax.servlet.ServletRequest
- Overrides:
getContentLength
in class javax.servlet.ServletRequestWrapper
getRealPath
public String getRealPath(String arg0)
- Specified by:
getRealPath
in interface javax.servlet.ServletRequest
- Overrides:
getRealPath
in class javax.servlet.ServletRequestWrapper
getReader
public BufferedReader getReader()
throws IOException
- Specified by:
getReader
in interface javax.servlet.ServletRequest
- Overrides:
getReader
in class javax.servlet.ServletRequestWrapper
- Throws:
IOException
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interface javax.servlet.ServletRequest
- Overrides:
getCharacterEncoding
in class javax.servlet.ServletRequestWrapper
getContentType
public String getContentType()
- Specified by:
getContentType
in interface javax.servlet.ServletRequest
- Overrides:
getContentType
in class javax.servlet.ServletRequestWrapper
getInputStream
public javax.servlet.ServletInputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface javax.servlet.ServletRequest
- Overrides:
getInputStream
in class javax.servlet.ServletRequestWrapper
- Throws:
IOException
setCharacterEncoding
public void setCharacterEncoding(String arg0)
throws UnsupportedEncodingException
- Specified by:
setCharacterEncoding
in interface javax.servlet.ServletRequest
- Overrides:
setCharacterEncoding
in class javax.servlet.ServletRequestWrapper
- Throws:
UnsupportedEncodingException
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.