Class PortletRequestImpl
- java.lang.Object
-
- org.gatein.pc.portlet.impl.jsr168.api.PortletRequestImpl
-
- All Implemented Interfaces:
javax.portlet.PortletRequest
- Direct Known Subclasses:
ClientDataRequestImpl,EventRequestImpl,RenderRequestImpl
public abstract class PortletRequestImpl extends Object implements javax.portlet.PortletRequest
PortletRequest implemention. The parameter implementation is left to subclasses that can implement it differently.- Version:
- $Revision: 7226 $
- Author:
- Julien Viet, Boleslaw Dawidowicz
-
-
Field Summary
Fields Modifier and Type Field Description protected PortletRequestAttributesattributes.protected org.gatein.pc.api.spi.ClientContextclientContext.protected PortletContainerImplcontainer.protected org.gatein.pc.api.invocation.PortletInvocationinvocation.protected static org.gatein.common.logging.Loggerlog.protected ContainerNavigationInfonavigationInfo.protected javax.portlet.PortalContextportalContext.protected javax.portlet.PortletPreferencespreferences.protected PortletSessionImplpsession.protected PortletRequestParameterMaprequestParameterMap.protected org.gatein.pc.api.spi.SecurityContextsecurityContext.protected org.gatein.pc.api.spi.ServerContextserverContext.protected intsessionStatus.protected Set<org.gatein.pc.api.Mode>supportedModes.protected Set<org.gatein.pc.api.WindowState>supportedWindowStates.protected org.gatein.pc.api.spi.UserContextuserContext.protected org.gatein.pc.api.spi.WindowContextwindowContext.
-
Constructor Summary
Constructors Constructor Description PortletRequestImpl(PortletContainerImpl container, org.gatein.pc.api.invocation.PortletInvocation invocation)
-
Method Summary
-
-
-
Field Detail
-
log
protected static final org.gatein.common.logging.Logger log
.
-
invocation
protected org.gatein.pc.api.invocation.PortletInvocation invocation
.
-
clientContext
protected org.gatein.pc.api.spi.ClientContext clientContext
.
-
userContext
protected org.gatein.pc.api.spi.UserContext userContext
.
-
securityContext
protected org.gatein.pc.api.spi.SecurityContext securityContext
.
-
serverContext
protected org.gatein.pc.api.spi.ServerContext serverContext
.
-
windowContext
protected org.gatein.pc.api.spi.WindowContext windowContext
.
-
preferences
protected javax.portlet.PortletPreferences preferences
.
-
container
protected PortletContainerImpl container
.
-
portalContext
protected javax.portlet.PortalContext portalContext
.
-
psession
protected PortletSessionImpl psession
.
-
sessionStatus
protected int sessionStatus
.
-
navigationInfo
protected ContainerNavigationInfo navigationInfo
.
-
attributes
protected final PortletRequestAttributes attributes
.
-
requestParameterMap
protected final PortletRequestParameterMap requestParameterMap
.
-
supportedModes
protected final Set<org.gatein.pc.api.Mode> supportedModes
.
-
supportedWindowStates
protected final Set<org.gatein.pc.api.WindowState> supportedWindowStates
.
-
-
Constructor Detail
-
PortletRequestImpl
public PortletRequestImpl(PortletContainerImpl container, org.gatein.pc.api.invocation.PortletInvocation invocation)
-
-
Method Detail
-
getParameter
public String getParameter(String name)
- Specified by:
getParameterin interfacejavax.portlet.PortletRequest
-
getParameterNames
public Enumeration<String> getParameterNames()
- Specified by:
getParameterNamesin interfacejavax.portlet.PortletRequest
-
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValuesin interfacejavax.portlet.PortletRequest
-
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMapin interfacejavax.portlet.PortletRequest
-
getWindowState
public javax.portlet.WindowState getWindowState()
- Specified by:
getWindowStatein interfacejavax.portlet.PortletRequest
-
getPortletMode
public javax.portlet.PortletMode getPortletMode()
- Specified by:
getPortletModein interfacejavax.portlet.PortletRequest
-
getAttribute
public Object getAttribute(String name) throws IllegalArgumentException
- Specified by:
getAttributein interfacejavax.portlet.PortletRequest- Throws:
IllegalArgumentException
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletRequest
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttributein interfacejavax.portlet.PortletRequest
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfacejavax.portlet.PortletRequest
-
getProperty
public String getProperty(String name)
- Specified by:
getPropertyin interfacejavax.portlet.PortletRequest
-
getProperties
public Enumeration<String> getProperties(String name)
- Specified by:
getPropertiesin interfacejavax.portlet.PortletRequest
-
getPropertyNames
public Enumeration<String> getPropertyNames()
- Specified by:
getPropertyNamesin interfacejavax.portlet.PortletRequest
-
getContextPath
public String getContextPath()
- Specified by:
getContextPathin interfacejavax.portlet.PortletRequest
-
getAuthType
public String getAuthType()
- Specified by:
getAuthTypein interfacejavax.portlet.PortletRequest
-
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUserin interfacejavax.portlet.PortletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfacejavax.portlet.PortletRequest
-
isUserInRole
public boolean isUserInRole(String roleName)
- Specified by:
isUserInRolein interfacejavax.portlet.PortletRequest
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfacejavax.portlet.PortletRequest
-
getResponseContentType
public String getResponseContentType()
- Specified by:
getResponseContentTypein interfacejavax.portlet.PortletRequest
-
getResponseContentTypes
public Enumeration<String> getResponseContentTypes()
- Specified by:
getResponseContentTypesin interfacejavax.portlet.PortletRequest
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfacejavax.portlet.PortletRequest
-
isPortletModeAllowed
public boolean isPortletModeAllowed(javax.portlet.PortletMode portletMode)
- Specified by:
isPortletModeAllowedin interfacejavax.portlet.PortletRequest
-
isWindowStateAllowed
public boolean isWindowStateAllowed(javax.portlet.WindowState windowState)
- Specified by:
isWindowStateAllowedin interfacejavax.portlet.PortletRequest
-
getPortletSession
public javax.portlet.PortletSession getPortletSession()
- Specified by:
getPortletSessionin interfacejavax.portlet.PortletRequest
-
getPortletSession
public javax.portlet.PortletSession getPortletSession(boolean create)
- Specified by:
getPortletSessionin interfacejavax.portlet.PortletRequest
-
getPortalContext
public javax.portlet.PortalContext getPortalContext()
- Specified by:
getPortalContextin interfacejavax.portlet.PortletRequest
-
getRequestedSessionId
public String getRequestedSessionId()
- Specified by:
getRequestedSessionIdin interfacejavax.portlet.PortletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
- Specified by:
isRequestedSessionIdValidin interfacejavax.portlet.PortletRequest
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocalesin interfacejavax.portlet.PortletRequest
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfacejavax.portlet.PortletRequest
-
getServerName
public String getServerName()
- Specified by:
getServerNamein interfacejavax.portlet.PortletRequest
-
getServerPort
public int getServerPort()
- Specified by:
getServerPortin interfacejavax.portlet.PortletRequest
-
getPreferences
public javax.portlet.PortletPreferences getPreferences()
- Specified by:
getPreferencesin interfacejavax.portlet.PortletRequest
-
getAttributes
public PortletRequestAttributes getAttributes()
-
getWindowID
public String getWindowID()
- Specified by:
getWindowIDin interfacejavax.portlet.PortletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()
- Specified by:
getCookiesin interfacejavax.portlet.PortletRequest
-
getPrivateParameterMap
public Map<String,String[]> getPrivateParameterMap()
- Specified by:
getPrivateParameterMapin interfacejavax.portlet.PortletRequest
-
getPublicParameterMap
public Map<String,String[]> getPublicParameterMap()
- Specified by:
getPublicParameterMapin interfacejavax.portlet.PortletRequest
-
getRealRequest
public final javax.servlet.http.HttpServletRequestWrapper getRealRequest()
-
initProperties
protected void initProperties(org.gatein.common.util.MultiValuedPropertyMap<String> properties)
-
-