org.sakaiproject.portal.render.portlet.services.state
Class SimplePortletStateEncoder
java.lang.Object
org.sakaiproject.portal.render.portlet.services.state.SimplePortletStateEncoder
- All Implemented Interfaces:
- PortletStateEncoder
public class SimplePortletStateEncoder
- extends Object
- implements PortletStateEncoder
Simple implementation of the PortletStateEncoder. This implementation simply
serializes the portlet state and encodes the bits in a url safe maner.
- Since:
- 2.2.3
- Version:
- $Id: SimplePortletStateEncoder.java 18420 2006-11-26 03:32:14Z
ddewolf@apache.org $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePortletStateEncoder
public SimplePortletStateEncoder()
getUrlSafeEncoder
public WebRecoder getUrlSafeEncoder()
setUrlSafeEncoder
public void setUrlSafeEncoder(WebRecoder urlSafeEncoder)
encode
public String encode(PortletState state)
- Description copied from interface:
PortletStateEncoder
- Encode the PortletState into a string
- Specified by:
encode in interface PortletStateEncoder
- Parameters:
state - the current portlet state
- Returns:
- serialized form of the state.
decode
public PortletState decode(String encodedState)
- Description copied from interface:
PortletStateEncoder
- Encode decode the PortletState from the serialized form.
- Specified by:
decode in interface PortletStateEncoder
- Returns:
- materialized portlet state.
Copyright © 2003-2012 Sakai Project. All Rights Reserved.