|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.execution.repository.snapshot.FlowExecutionSnapshot
org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshot
public class SerializedFlowExecutionSnapshot
A snapshot implementation that is based on standard Java serialization, created by a
SerializedFlowExecutionSnapshotFactory
.
SerializedFlowExecutionSnapshotFactory
,
Serialized FormConstructor Summary | |
---|---|
SerializedFlowExecutionSnapshot()
Default constructor necessary for Externalizable custom serialization semantics. |
|
SerializedFlowExecutionSnapshot(FlowExecution flowExecution,
boolean compress)
Creates a new serialized flow execution snapshot. |
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,
java.lang.ClassLoader classLoader)
Internal helper method to deserialize given flow execution data. |
boolean |
equals(java.lang.Object o)
|
protected byte[] |
getFlowExecutionData()
Return the flow execution data in its raw byte[] form. |
int |
hashCode()
|
boolean |
isCompressed()
Returns whether or not the flow execution data in this snapshot is compressed. |
void |
readExternal(java.io.ObjectInput in)
|
protected byte[] |
serialize(FlowExecution flowExecution)
Internal helper method to serialize given flow execution. |
FlowExecution |
unmarshal(java.lang.ClassLoader classLoader)
Unmarshal the flow execution from this snapshot's data. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializedFlowExecutionSnapshot()
Externalizable
custom serialization semantics. Should not be called by
application code.
public SerializedFlowExecutionSnapshot(FlowExecution flowExecution, boolean compress) throws SnapshotCreationException
flowExecution
- the flow executioncompress
- whether or not to apply compression during snapshotting
SnapshotCreationException
Method Detail |
---|
public boolean isCompressed()
public FlowExecution unmarshal(java.lang.ClassLoader classLoader) throws SnapshotUnmarshalException
classLoader
- the classloader to use to resolve types during execution deserialization
SnapshotUnmarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected byte[] getFlowExecutionData() throws java.io.IOException
java.io.IOException
- a problem occured with decompressionprotected byte[] serialize(FlowExecution flowExecution) throws java.io.IOException
flowExecution
- flow execution to serialize
java.io.IOException
- when something goes wrong during during serializationprotected FlowExecution deserialize(byte[] data, java.lang.ClassLoader classLoader) throws java.io.IOException, java.lang.ClassNotFoundException
data
- serialized flow flow execution dataclassLoader
- the class loader to use to resolve classes during deserialization
java.io.IOException
- when something goes wrong during deserialization
java.lang.ClassNotFoundException
- when required classes cannot be loadedprotected byte[] compress(byte[] dataToCompress) throws java.io.IOException
java.io.IOException
protected byte[] decompress(byte[] dataToDecompress) throws java.io.IOException
java.io.IOException
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |