org.apache.pluto.internal.impl
Class EventRequestImpl

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.apache.pluto.internal.impl.PortletRequestImpl
              extended by org.apache.pluto.internal.impl.EventRequestImpl
All Implemented Interfaces:
EventRequest, PortletRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, InternalEventRequest, InternalPortletRequest

public class EventRequestImpl
extends PortletRequestImpl
implements EventRequest, InternalEventRequest

javax.portlet.EventRequest implementation. This class also implements InternalEventRequest.

Author:
Christian Raschka

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
PortletRequest.P3PUserInfos
 
Field Summary
 
Fields inherited from class org.apache.pluto.internal.impl.PortletRequestImpl
container, internalPortletWindow
 
Fields inherited from interface javax.portlet.PortletRequest
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
EventRequestImpl(PortletContainer container, InternalPortletWindow internalPortletWindow, javax.servlet.http.HttpServletRequest servletRequest, Event event)
           
 
Method Summary
 String getCharacterEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 javax.servlet.http.Cookie[] getCookieProperties()
           
 Event getEvent()
          Returns the event that triggered the call to the processEvent method.
 javax.servlet.ServletInputStream getInputStream()
           
 String getLifecyclePhase()
           
 PortletPreferences getPreferences()
          FIXME: (see ActionRequestImpl)
 BufferedReader getReader()
           
 void setCharacterEncoding(String encoding)
          TODO: why check bodyAccessed?
 
Methods inherited from class org.apache.pluto.internal.impl.PortletRequestImpl
baseGetParameterMap, createUserInfoMap, getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletRequest, getInternalPortletWindow, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getPortalContext, getPortletContainer, getPortletMode, getPortletSession, getPortletSession, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getProtocol, getPublicParameterMap, getQueryString, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getServletPath, getSession, getSession, getUserPrincipal, getWindowId, getWindowID, getWindowState, init, isForwarded, isIncluded, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, release, removeAttribute, setAttribute, setBodyAccessed, setForwarded, setForwardedQueryString, setIncluded, setIncludedQueryString
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getMethod, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getRequest, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.EventRequest
getMethod
 
Methods inherited from interface org.apache.pluto.internal.InternalPortletRequest
getHttpServletRequest, getInternalPortletWindow, getPortletContainer, init, isForwarded, isIncluded, release, setAttribute, setForwarded, setForwardedQueryString, setIncluded, setIncludedQueryString
 
Methods inherited from interface javax.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute
 

Constructor Detail

EventRequestImpl

public EventRequestImpl(PortletContainer container,
                        InternalPortletWindow internalPortletWindow,
                        javax.servlet.http.HttpServletRequest servletRequest,
                        Event event)
Method Detail

getEvent

public Event getEvent()
Description copied from interface: EventRequest
Returns the event that triggered the call to the processEvent method.

Specified by:
getEvent in interface EventRequest
Returns:
the event that triggered the current processEvent call.

getPreferences

public PortletPreferences getPreferences()
FIXME: (see ActionRequestImpl)

Specified by:
getPreferences in interface PortletRequest
Overrides:
getPreferences in class PortletRequestImpl
Returns:
the portlet preferences

getLifecyclePhase

public String getLifecyclePhase()
Specified by:
getLifecyclePhase in interface InternalPortletRequest
Overrides:
getLifecyclePhase in class PortletRequestImpl

getCookieProperties

public javax.servlet.http.Cookie[] getCookieProperties()

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
getCharacterEncoding in class javax.servlet.ServletRequestWrapper

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface javax.servlet.ServletRequest
Overrides:
getContentLength 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 PortletRequestImpl
Throws:
IOException

getReader

public BufferedReader getReader()
                         throws UnsupportedEncodingException,
                                IOException
Specified by:
getReader in interface javax.servlet.ServletRequest
Overrides:
getReader in class PortletRequestImpl
Throws:
UnsupportedEncodingException
IOException

setCharacterEncoding

public void setCharacterEncoding(String encoding)
                          throws UnsupportedEncodingException
Description copied from class: PortletRequestImpl
TODO: why check bodyAccessed?

Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
setCharacterEncoding in class PortletRequestImpl
Throws:
UnsupportedEncodingException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.