Class StateString

java.lang.Object
org.gatein.pc.api.StateString
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OpaqueStateString, ParametersStateString

public abstract class StateString extends Object implements Serializable
Encapsulate state as a string.
Version:
$Revision: 5448 $
Author:
Julien Viet
See Also:
  • Field Details

  • Constructor Details

    • StateString

      public StateString()
  • Method Details

    • getStringValue

      public abstract String getStringValue()
      Return the value of the navigational state of the portlet.
      Returns:
      the string value
    • writeTo

      public abstract void writeTo(DataOutputStream out) throws IOException
      Throws:
      IOException
    • create

      public static StateString create(DataInputStream in) throws IOException
      Factory method that will create the most appropriate form from the byte representation.
      Parameters:
      in - the inputstream to read from
      Returns:
      a new state string
      Throws:
      IOException - any IOException
    • create

      public static StateString create(String opaqueValue)
      Factory method that will create the most appropriate form from the string representation.
      Parameters:
      opaqueValue - the opaque value
      Returns:
      a new state string
    • decodeOpaqueValue

      public static Map<String,String[]> decodeOpaqueValue(String opaqueValue)
    • encodeAsOpaqueValue

      public static String encodeAsOpaqueValue(Map<String,String[]> parameters)