com.plumtree.remote.util
Class CSPCodec

java.lang.Object
  extended bycom.plumtree.remote.util.CSPCodec

public final class CSPCodec
extends java.lang.Object

Helper class for coding/decoding strings and characters according to the scheme used by the CSP protocol (underlying protocol for Portlet API).


Method Summary
static java.lang.String decode(java.lang.String input)
          CSP-decodes a string.
static java.lang.String encode(char input)
          CSP-encodes a character.
static java.lang.String encode(java.lang.String input)
          CSP-encodes a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(java.lang.String input)
CSP-encodes a string.

Parameters:
input - the string to encode
Returns:
a CSP-encoded representation of the input string

encode

public static java.lang.String encode(char input)
CSP-encodes a character.

Parameters:
input - the character to encode
Returns:
a CSP-encoded representation of the input character

decode

public static java.lang.String decode(java.lang.String input)
CSP-decodes a string.

Parameters:
input - the CSP-encoded string
Returns:
the CSP-decoded string


For additional information on the Oracle® WebCenter Interaction Development Kit, including tutorials, blogs, code samples and more, see the Oracle Technology Network (http://www.oracle.com/technology/index.html).

Copyright ©2010 Oracle® Corporation. All Rights Reserved.