|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 StrategyContext
java.util.Map
of org.jboss.portal.theme.strategy.PortletContext
StrategyContext.getPortletContexts()
,
PortletContext
public PortletContext getTargetPortlet()
StrategyContext
If the current request is dedicated to a particular portlet (action or render request for this portlet), make this information available.
getTargetPortlet
in interface StrategyContext
StrategyContext.getTargetPortlet()
public PortalLayout getLayout()
StrategyContext
The layout is the jsp or servlet that will handle the generation of the page's markup.
getLayout
in interface StrategyContext
StrategyContext.getLayout()
public PortalTheme getTheme()
StrategyContext
The theme is a set of css and image files that make up the look and feel of the rendered markup
getTheme
in interface StrategyContext
public java.lang.String[] getRegions()
StrategyContext
getRegions
in interface StrategyContext
StrategyContext.getRegions()
public StrategyResponse createResponse()
StrategyContext
createResponse
in interface StrategyContext
StrategyContext.createResponse()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
StrategyContext
javax.servlet.http.HttpServletRequest
getHttpServletRequest
in interface StrategyContext
StrategyContext.getHttpServletRequest()
public MediaType getMediaType()
StrategyContext
getMediaType
in interface StrategyContext
StrategyContext.getMediaType()
public java.lang.String getCharSet()
StrategyContext
getCharSet
in interface StrategyContext
StrategyContext.getCharSet()
public boolean isPortalSupportedWindowState(WindowState state)
StrategyContext
isPortalSupportedWindowState
in interface StrategyContext
state
- the state to check for validity
StrategyContext.isPortalSupportedWindowState(WindowState)
public boolean isPortalSupportedPortletMode(Mode mode)
StrategyContext
isPortalSupportedPortletMode
in interface StrategyContext
mode
- 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 |