当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
StrategyContext - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.theme.strategy
Class StrategyContext
java.lang.Object
org.jboss.portal.theme.strategy.StrategyContext
- public final class StrategyContext
- extends java.lang.Object
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.
- See Also:
StrategyContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrategyContext
public StrategyContext(NavigationalStateContext navCtx,
PageNavigationalState pageNavState,
javax.servlet.http.HttpServletRequest httpRequest,
HTTPStreamInfo streamInfo,
java.util.Set windowStates,
java.util.Set portletModes,
java.util.List regionNames)
getLayoutRegions
public java.lang.String[] getLayoutRegions()
- See Also:
getLayoutRegions()
createResponse
public StrategyResponse createResponse()
- See Also:
createResponse()
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
- See Also:
getHttpServletRequest()
getMediaType
public MediaType getMediaType()
- See Also:
getMediaType()
getCharSet
public java.lang.String getCharSet()
- See Also:
getCharSet()
isSupportedWindowState
public boolean isSupportedWindowState(WindowState state)
- See Also:
isSupportedWindowState(WindowState)
isSupportedPortletMode
public boolean isSupportedPortletMode(Mode mode)
- See Also:
isSupportedPortletMode(Mode)
getPortletWindowContexts
public java.util.Collection getPortletWindowContexts()
getWindowState
public WindowState getWindowState(WindowLocation portlet)
getPortletMode
public Mode getPortletMode(WindowContext portlet)
getWindows
public java.util.List getWindows(WindowState windowState)
throws java.lang.IllegalArgumentException
- Return a list of windows matching the specified window state.
- Parameters:
windowState
- the window state to match
- Returns:
- a list of windows
- Throws:
java.lang.IllegalArgumentException
- if the window state is null