Package org.gatein.pc.api
Class StateString
java.lang.Object
org.gatein.pc.api.StateString
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OpaqueStateString,ParametersStateString
Encapsulate state as a string.
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intstatic final String.protected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StateStringFactory method that will create the most appropriate form from the byte representation.static StateStringFactory method that will create the most appropriate form from the string representation.decodeOpaqueValue(String opaqueValue) static StringencodeAsOpaqueValue(Map<String, String[]> parameters) abstract StringReturn the value of the navigational state of the portlet.abstract voidwriteTo(DataOutputStream out)
-
Field Details
-
JBPNS_PREFIX
.- See Also:
-
EMPTY
protected static final int EMPTY- See Also:
-
SERIALIZED
protected static final int SERIALIZED- See Also:
-
OPAQUE
protected static final int OPAQUE- See Also:
-
-
Constructor Details
-
StateString
public StateString()
-
-
Method Details
-
getStringValue
Return the value of the navigational state of the portlet.- Returns:
- the string value
-
writeTo
- Throws:
IOException
-
create
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
Factory method that will create the most appropriate form from the string representation.- Parameters:
opaqueValue- the opaque value- Returns:
- a new state string
-
decodeOpaqueValue
-
encodeAsOpaqueValue
-