org.jboss.portal.portlet.impl
Class PortletRequestImpl

java.lang.Object
  extended by org.jboss.portal.portlet.impl.PortletRequestImpl
All Implemented Interfaces:
PortletRequest
Direct Known Subclasses:
ActionRequestImpl, RenderRequestImpl

public abstract class PortletRequestImpl
extends java.lang.Object
implements PortletRequest

PortletRequest implemention. The parameter implementation is left to subclasses that can implement it differently.


Field Summary
protected  Component component
           
protected  ContentTypes contentTypes
           
protected  javax.servlet.http.HttpServletRequest dreq
           
protected  Instance instance
           
protected  InstanceContext instanceCtx
           
protected static org.apache.log4j.Logger log
           
protected  PortalContext portalContext
           
protected  PortletPreferences preferences
           
protected  PortletSessionImpl psession
           
protected  PortalRequest req
           
protected  PortalResponse resp
           
protected  int sessionStatus
           
protected  UserContext userContext
           
protected  java.util.Map userInfo
           
protected  Window window
           
protected  WindowContext windowCtx
           
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
PortletRequestImpl(UserContext userContext, PortletPreferences preferences, Window window, WindowContext windowCtx, PortalRequest req, PortalResponse resp, javax.servlet.http.HttpServletRequest dreq)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 java.lang.String getAuthType()
           
 java.lang.String getContextPath()
           
 java.util.Locale getLocale()
           
 java.util.Enumeration getLocales()
           
 PortalContext getPortalContext()
           
 PortletMode getPortletMode()
           
 PortletSession getPortletSession()
           
 PortletSession getPortletSession(boolean create)
           
 PortletPreferences getPreferences()
           
 java.util.Enumeration getProperties(java.lang.String name)
           
 java.lang.String getProperty(java.lang.String name)
           
 java.util.Enumeration getPropertyNames()
           
 java.lang.String getRemoteUser()
           
 java.lang.String getRequestedSessionId()
           
 java.lang.String getResponseContentType()
           
 java.util.Enumeration getResponseContentTypes()
           
 java.lang.String getScheme()
           
 java.lang.String getServerName()
           
 int getServerPort()
           
 java.security.Principal getUserPrincipal()
           
 WindowState getWindowState()
           
 boolean isPortletModeAllowed(PortletMode portletMode)
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(java.lang.String roleName)
           
 boolean isWindowStateAllowed(WindowState windowState)
           
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.PortletRequest
getParameter, getParameterMap, getParameterNames, getParameterValues
 

Field Detail

log

protected static final org.apache.log4j.Logger log

userContext

protected UserContext userContext

window

protected Window window

windowCtx

protected WindowContext windowCtx

instance

protected Instance instance

instanceCtx

protected InstanceContext instanceCtx

component

protected Component component

contentTypes

protected ContentTypes contentTypes

req

protected PortalRequest req

resp

protected PortalResponse resp

userInfo

protected java.util.Map userInfo

dreq

protected javax.servlet.http.HttpServletRequest dreq

portalContext

protected PortalContext portalContext

psession

protected PortletSessionImpl psession

preferences

protected PortletPreferences preferences

sessionStatus

protected int sessionStatus
Constructor Detail

PortletRequestImpl

public PortletRequestImpl(UserContext userContext,
                          PortletPreferences preferences,
                          Window window,
                          WindowContext windowCtx,
                          PortalRequest req,
                          PortalResponse resp,
                          javax.servlet.http.HttpServletRequest dreq)
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface PortletRequest

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface PortletRequest

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface PortletRequest

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface PortletRequest

getProperty

public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in interface PortletRequest

getProperties

public java.util.Enumeration getProperties(java.lang.String name)
Specified by:
getProperties in interface PortletRequest

getPropertyNames

public java.util.Enumeration getPropertyNames()
Specified by:
getPropertyNames in interface PortletRequest

getContextPath

public java.lang.String getContextPath()
Specified by:
getContextPath in interface PortletRequest

getAuthType

public java.lang.String getAuthType()
Specified by:
getAuthType in interface PortletRequest

getRemoteUser

public java.lang.String getRemoteUser()
Specified by:
getRemoteUser in interface PortletRequest

getUserPrincipal

public java.security.Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface PortletRequest

isUserInRole

public boolean isUserInRole(java.lang.String roleName)
Specified by:
isUserInRole in interface PortletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface PortletRequest

getResponseContentType

public java.lang.String getResponseContentType()
Specified by:
getResponseContentType in interface PortletRequest

getResponseContentTypes

public java.util.Enumeration getResponseContentTypes()
Specified by:
getResponseContentTypes in interface PortletRequest

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface PortletRequest

isPortletModeAllowed

public boolean isPortletModeAllowed(PortletMode portletMode)
Specified by:
isPortletModeAllowed in interface PortletRequest

getPortletMode

public PortletMode getPortletMode()
Specified by:
getPortletMode in interface PortletRequest

isWindowStateAllowed

public boolean isWindowStateAllowed(WindowState windowState)
Specified by:
isWindowStateAllowed in interface PortletRequest

getWindowState

public WindowState getWindowState()
Specified by:
getWindowState in interface PortletRequest

getPortletSession

public PortletSession getPortletSession()
Specified by:
getPortletSession in interface PortletRequest

getPortletSession

public PortletSession getPortletSession(boolean create)
Specified by:
getPortletSession in interface PortletRequest

getPortalContext

public PortalContext getPortalContext()
Specified by:
getPortalContext in interface PortletRequest

getRequestedSessionId

public java.lang.String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface PortletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface PortletRequest

getLocales

public java.util.Enumeration getLocales()
Specified by:
getLocales in interface PortletRequest

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface PortletRequest

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in interface PortletRequest

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface PortletRequest

getPreferences

public PortletPreferences getPreferences()
Specified by:
getPreferences in interface PortletRequest