org.sakaiproject.portal.render.portlet.services.state
Class BasicWebRecoder

java.lang.Object
  extended by org.sakaiproject.portal.render.portlet.services.state.BasicWebRecoder
All Implemented Interfaces:
WebRecoder

public class BasicWebRecoder
extends Object
implements WebRecoder

WebRecoder which uses basic url encoding (escaped) values to perform the encoding. Encoded values will not be obfuscated, but will be safe.

Since:
Sakai 2.2.4
Version:
$Rev: 110562 $

Constructor Summary
BasicWebRecoder()
           
 
Method Summary
 byte[] decode(String string)
          Decode the bits into a websafe version.
 String encode(byte[] bits)
          Recode the bits into a websafe version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicWebRecoder

public BasicWebRecoder()
Method Detail

encode

public String encode(byte[] bits)
Description copied from interface: WebRecoder
Recode the bits into a websafe version.

Specified by:
encode in interface WebRecoder
Parameters:
bits - the original bits
Returns:
websafe version

decode

public byte[] decode(String string)
Description copied from interface: WebRecoder
Decode the bits into a websafe version.

Specified by:
decode in interface WebRecoder
Parameters:
string - websafe version
Returns:
the original encoded bits


Copyright © 2003-2012 Sakai Project. All Rights Reserved.