|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.theme.impl.strategy.StrategyContextImpl
An implementation of the strategy context.
The strategy context is used by the layout strategy interceptor to pass the available state information from the portal to the strategy. The context contains information about the current page, the windowIDs on it, the state of those windowIDs, etc.
StrategyContext| Constructor Summary | |
StrategyContextImpl(PageRequestContext requestContext,
PortalLayout layout,
PortalTheme theme)
|
|
| Method Summary | |
StrategyResponse |
createResponse()
Create a new strategy response. |
java.lang.String |
getCharSet()
Get the encoding in which the response to the current request will be emmited. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Get a reference to the javax.servlet.http.HttpServletRequest |
PortalLayout |
getLayout()
Get the layout that is currently active for the request. |
MediaType |
getMediaType()
Get the determined content type for the current request. |
java.util.List |
getPortletContexts()
Get a list of all the portlets assigned to the requested page. |
java.lang.String[] |
getRegions()
Get the names of all the regions of the current page. |
PortletContext |
getTargetPortlet()
Get the targeted portlet for the current request, if any. |
PortalTheme |
getTheme()
Get the theme that is currently active for the request. |
boolean |
isPortalSupportedPortletMode(Mode mode)
Check if the presented PortletMode is allowed for the current portal. |
boolean |
isPortalSupportedWindowState(WindowState state)
Check if the presented WindowState is allowed for the current portal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StrategyContextImpl(PageRequestContext requestContext, PortalLayout layout, PortalTheme theme)
| Method Detail |
public java.util.List getPortletContexts()
StrategyContext
getPortletContexts in interface StrategyContextjava.util.Map of org.jboss.portal.theme.strategy.PortletContextStrategyContext.getPortletContexts(),
PortletContextpublic PortletContext getTargetPortlet()
StrategyContextIf the current request is dedicated to a particular portlet (action or render request for this portlet), make this information available.
getTargetPortlet in interface StrategyContextStrategyContext.getTargetPortlet()public PortalLayout getLayout()
StrategyContextThe layout is the jsp or servlet that will handle the generation of the page's markup.
getLayout in interface StrategyContextStrategyContext.getLayout()public PortalTheme getTheme()
StrategyContextThe theme is a set of css and image files that make up the look and feel of the rendered markup
getTheme in interface StrategyContextpublic java.lang.String[] getRegions()
StrategyContext
getRegions in interface StrategyContextStrategyContext.getRegions()public StrategyResponse createResponse()
StrategyContext
createResponse in interface StrategyContextStrategyContext.createResponse()public javax.servlet.http.HttpServletRequest getHttpServletRequest()
StrategyContextjavax.servlet.http.HttpServletRequest
getHttpServletRequest in interface StrategyContextStrategyContext.getHttpServletRequest()public MediaType getMediaType()
StrategyContext
getMediaType in interface StrategyContextStrategyContext.getMediaType()public java.lang.String getCharSet()
StrategyContext
getCharSet in interface StrategyContextStrategyContext.getCharSet()public boolean isPortalSupportedWindowState(WindowState state)
StrategyContext
isPortalSupportedWindowState in interface StrategyContextstate - the state to check for validity
StrategyContext.isPortalSupportedWindowState(WindowState)public boolean isPortalSupportedPortletMode(Mode mode)
StrategyContext
isPortalSupportedPortletMode in interface StrategyContextmode - the mode to check for validity
StrategyContext.isPortalSupportedPortletMode(Mode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||