|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
PageRequestContextNote: These are the states supported by the portal. Each indivudual portlet can support a subset of these states.
getSupportedWindowStates in interface PageRequestContextpublic java.util.Set getSupportedPortletModes()
PageRequestContextNote: These are the modes supported by the portal. Each indivudual portlet can support a subset of these modes.
getSupportedPortletModes in interface PageRequestContextpublic HTTPStreamInfo getStreamInfo()
PageRequestContextThe stream info allows access to content type and char encoding that will be used to write the response of this request.
getStreamInfo in interface PageRequestContextpublic ServerRequest getServerRequest()
PageRequestContext
getServerRequest in interface PageRequestContextpublic javax.servlet.http.HttpServletRequest getHttpRequest()
PageRequestContext
getHttpRequest in interface PageRequestContextpublic java.util.Map getPortalProperties()
PageRequestContext
getPortalProperties in interface PageRequestContextpublic java.util.Map getPageProperties()
PageRequestContext
getPageProperties in interface PageRequestContextpublic java.util.List getPortletContexts()
PageRequestContext
getPortletContexts in interface PageRequestContextStrategyContext.getPortletContexts(),
PortletContextpublic PortletContext getTargetPortlet()
PageRequestContext
getTargetPortlet in interface PageRequestContextpublic 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 | |||||||||