Subversion Repository Public Repository

litesoft

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);
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/pavment/PlaceTokenCodec.java

Diff revisions: vs.
Revision Author Commited Message
626 GeorgeS picture GeorgeS Wed 11 Apr, 2012 19:39:41 +0000