|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.execution.repository.continuation.FlowExecutionContinuation
org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation
public class SerializedFlowExecutionContinuation
A continuation implementation that is based on standard Java serialization, created by a
SerializedFlowExecutionContinuationFactory.
SerializedFlowExecutionContinuationFactory,
Serialized Form| Constructor Summary | |
|---|---|
SerializedFlowExecutionContinuation()
Default constructor necessary for Externalizable custom serialization semantics. |
|
SerializedFlowExecutionContinuation(FlowExecution flowExecution,
boolean compress)
Creates a new serialized flow execution continuation. |
|
| Method Summary | |
|---|---|
protected byte[] |
compress(byte[] dataToCompress)
Internal helper method to compress given flow execution data using GZIP compression. |
protected byte[] |
decompress(byte[] dataToDecompress)
Internal helper method to decompress given flow execution data using GZIP decompression. |
protected FlowExecution |
deserialize(byte[] data)
Internal helper method to deserialize given flow execution data. |
protected byte[] |
getFlowExecutionData()
Return the flow execution data in its raw byte[] form. |
boolean |
isCompressed()
Returns whether or not the flow execution data in this continuation is compressed. |
void |
readExternal(java.io.ObjectInput in)
|
protected byte[] |
serialize(FlowExecution flowExecution)
Internal helper method to serialize given flow execution. |
byte[] |
toByteArray()
Converts this continuation to a byte array for convenient serialization. |
FlowExecution |
unmarshal()
Restores the flow execution wrapped in this continuation. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializedFlowExecutionContinuation()
Externalizable custom serialization semantics. Should not be called by
application code.
public SerializedFlowExecutionContinuation(FlowExecution flowExecution,
boolean compress)
throws ContinuationCreationException
flowExecution - the flow executioncompress - whether or not the flow execution should be compressed
ContinuationCreationException| Method Detail |
|---|
public boolean isCompressed()
public FlowExecution unmarshal()
throws ContinuationUnmarshalException
FlowExecutionContinuation
unmarshal in class FlowExecutionContinuationContinuationUnmarshalException - when there is a problem unmarshalling this continuationpublic byte[] toByteArray()
FlowExecutionContinuation
toByteArray in class FlowExecutionContinuation
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
protected byte[] getFlowExecutionData()
throws java.io.IOException
java.io.IOException - a problem occured with decompression
protected byte[] serialize(FlowExecution flowExecution)
throws java.io.IOException
flowExecution - flow execution to serialize
java.io.IOException - when something goes wrong during during serialization
protected FlowExecution deserialize(byte[] data)
throws java.io.IOException,
java.lang.ClassNotFoundException
data - serialized flow flow execution data
java.io.IOException - when something goes wrong during deserialization
java.lang.ClassNotFoundException - when required classes cannot be loaded
protected byte[] compress(byte[] dataToCompress)
throws java.io.IOException
java.io.IOException
protected byte[] decompress(byte[] dataToDecompress)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||