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