|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.impl.page.PageRequestContextImpl
The page request context holds the state of the current page request.
This context allows the page invocation stack to read the necessary information about the currently requested resources.
Constructor Summary | |
PageRequestContextImpl(ServerInvocation invocation,
java.util.Map windowContexts,
java.util.Set supportedWindowStates,
java.util.Set supportedModes,
java.util.Map portalProperties,
java.util.Map contentTypes,
java.lang.String[] regionNames,
java.lang.String targetWindowID,
java.util.Map pageProperties)
create a page request context. |
Method Summary | |
javax.servlet.http.HttpServletRequest |
getHttpRequest()
Get the HttpServletRequest that caused the current page request. |
java.util.Map |
getPageProperties()
Get the map of page properties for the currently requested page. |
java.util.Map |
getPortalProperties()
Get the map of portal properties for the currently requested portal. |
java.util.List |
getPortletContexts()
Get a map of all portlets on the currently requested page with their state information. |
java.lang.String[] |
getRegionNames()
Get an array of the names of all the regions on the currently requested page. |
ServerRequest |
getServerRequest()
Get the server request that caused this page request. |
HTTPStreamInfo |
getStreamInfo()
Get the StreamInfo for the current request. |
java.util.Set |
getSupportedPortletModes()
Get the portlet modes that are supported by the requested portal. |
java.util.Set |
getSupportedWindowStates()
Get the window states that are supported by the requested portal. |
PortletContext |
getTargetPortlet()
Get the portlet context for the targeted portlet, if any. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PageRequestContextImpl(ServerInvocation invocation, java.util.Map windowContexts, java.util.Set supportedWindowStates, java.util.Set supportedModes, java.util.Map portalProperties, java.util.Map contentTypes, java.lang.String[] regionNames, java.lang.String targetWindowID, java.util.Map pageProperties)
invocation
- the ServerInvocation that triggered this PageRequestwindowContexts
- a java.util.Map
of org.jboss.portal.theme.page.WindowContext
instances, keyed by window IDsupportedWindowStates
- the window state provider to allow access to the supported window statessupportedModes
- the portlet mode provider to allow access to the supported portlet modesportalProperties
- a java.util.Properties
instance with portal propertiescontentTypes
- a java.util.Map
of org.jboss.portal.server.plugins.mode.ContentTypes
of each portlet on the requested pageregionNames
- an array of all the region names on the requested pagetargetWindowID
- the name of a targeted (via serverInvocation) portlet window (if any)pageProperties
- defined properties for the page, including the prefered layout id to use.
java.lang.IllegalArgumentException
- if any of the following conditions occur:
Method Detail |
public java.util.Set getSupportedWindowStates()
PageRequestContext
Note: These are the states supported by the portal. Each indivudual portlet can support a subset of these states.
getSupportedWindowStates
in interface PageRequestContext
public java.util.Set getSupportedPortletModes()
PageRequestContext
Note: These are the modes supported by the portal. Each indivudual portlet can support a subset of these modes.
getSupportedPortletModes
in interface PageRequestContext
public HTTPStreamInfo getStreamInfo()
PageRequestContext
The stream info allows access to content type and char encoding that will be used to write the response of this request.
getStreamInfo
in interface PageRequestContext
public ServerRequest getServerRequest()
PageRequestContext
getServerRequest
in interface PageRequestContext
public javax.servlet.http.HttpServletRequest getHttpRequest()
PageRequestContext
getHttpRequest
in interface PageRequestContext
public java.util.Map getPortalProperties()
PageRequestContext
getPortalProperties
in interface PageRequestContext
public java.util.Map getPageProperties()
PageRequestContext
getPageProperties
in interface PageRequestContext
public java.util.List getPortletContexts()
PageRequestContext
getPortletContexts
in interface PageRequestContext
StrategyContext.getPortletContexts()
,
PortletContext
public PortletContext getTargetPortlet()
PageRequestContext
getTargetPortlet
in interface PageRequestContext
public java.lang.String[] getRegionNames()
PageRequestContext
getRegionNames
in interface PageRequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |