litesoft
@ 948
litesoft / trunk / GWT_Sandbox / FormEngine / src / com / temp / client / foundation / pavment / PlaceTokenCodec.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
package com.temp.client.foundation.pavment; /** * Implementations support different "Flavors" of Encoding a Place's Data (token * - The Right part, after the ':', of the URL Fragment; What GWT uses for * History) * * @author georgs */ public interface PlaceTokenCodec { /** * Encode the String (nulls are returned as "") * * @return nulls are returned as "", otherwise the Encoded String. */ public String encode( String unencoded ); /** * Decode the previously "encoded" data, null or bad encoding will return * null. * * @return null indicates that the data was either null or contained * unacceptable characters for decoding. */ public String decode( String encoded ); } |