org.apache.jetspeed.container.state.impl
Class HybridNavigationalState
java.lang.Object
org.apache.jetspeed.container.state.impl.AbstractNavigationalState
org.apache.jetspeed.container.state.impl.SessionNavigationalState
org.apache.jetspeed.container.state.impl.HybridNavigationalState
- All Implemented Interfaces:
- MutableNavigationalState, NavigationalState
public class HybridNavigationalState
- extends SessionNavigationalState
HybridNavigationalState
Only encodes render parameters that start with a given prefix
- Version:
- $Id: AbstractNavigationalState.java 333093 2005-11-13 18:42:42Z taylor $
- Author:
- David Sean Taylor
Field Summary |
protected java.lang.String |
prefix
|
Method Summary |
java.lang.String |
encode(org.apache.pluto.om.window.PortletWindow window,
java.util.Map parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
Encodes the Navigational State with overrides for a specific PortletWindow into a string to be embedded within a
PortalURL. |
boolean |
isNavigationalParameterStateFull()
|
boolean |
isRenderParameterStateFull()
|
Methods inherited from class org.apache.jetspeed.container.state.impl.AbstractNavigationalState |
clearParameters, encode, encode, getMappedMode, getMappedMode, getMappedState, getMappedState, getMaximizedWindow, getMode, getMode, getParameterNames, getParameterValues, getPortletWindowOfAction, getPortletWindowOfResource, getPortletWindowRequestNavigationalStates, getState, getState, getWindowIdIterator, init, removeState, setMode, setState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefix
protected java.lang.String prefix
HybridNavigationalState
public HybridNavigationalState(NavigationalStateCodec codec,
java.lang.String prefix,
JetspeedContentCache cache)
encode
public java.lang.String encode(org.apache.pluto.om.window.PortletWindow window,
java.util.Map parameters,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
boolean action)
throws java.io.UnsupportedEncodingException
- Description copied from interface:
NavigationalState
- Encodes the Navigational State with overrides for a specific PortletWindow into a string to be embedded within a
PortalURL.
- Specified by:
encode
in interface NavigationalState
- Overrides:
encode
in class AbstractNavigationalState
- Parameters:
window
- the PortalWindowparameters
- the new request or action parameters for the PortalWindowmode
- the new PortletMode for the PortalWindowstate
- the new WindowState for the PortalWindowaction
- indicates if to be used in an actionURL or renderURL
- Returns:
- encoded new Navigational State
- Throws:
java.io.UnsupportedEncodingException
isNavigationalParameterStateFull
public boolean isNavigationalParameterStateFull()
- Specified by:
isNavigationalParameterStateFull
in interface NavigationalState
- Overrides:
isNavigationalParameterStateFull
in class SessionNavigationalState
- Returns:
- true if WindowStates and PortletModes will be saved in the Session
isRenderParameterStateFull
public boolean isRenderParameterStateFull()
- Specified by:
isRenderParameterStateFull
in interface NavigationalState
- Overrides:
isRenderParameterStateFull
in class SessionNavigationalState
- Returns:
- true if render parameters will be saved in the Session
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.