org.szegedi.spring.web.jsflow.codec
Interface BinaryStateCodec

All Known Implementing Classes:
CompositeCodec, CompressionCodec, ConfidentialityCodec, IntegrityCodec, PooledCodec

public interface BinaryStateCodec

Instances of a binary state codec can be added to any AbstractFlowStateStorage to transform the binary representation of the serialized state. Tipically, you will add codecs when using ClientSideFlowStateStorage to compress, encrypt, and/or digitally sign the state before passing it to the client.

Version:
$Id: BinaryStateCodec.java 10 2006-05-16 09:49:48Z szegedia $
Author:
Attila Szegedi

Method Summary
 OneWayCodec createDecoder()
          Create a one-way single-threaded, nonshared codec instance able to decode a state as received from the client or from an upstream codec.
 OneWayCodec createEncoder()
          Create a one-way single-threaded, nonshared codec instance able to encode a state as should be sent to a client or a downstream codec.
 

Method Detail

createDecoder

OneWayCodec createDecoder()
                          throws java.lang.Exception
Create a one-way single-threaded, nonshared codec instance able to decode a state as received from the client or from an upstream codec.

Returns:
the codec for decoding
Throws:
java.lang.Exception

createEncoder

OneWayCodec createEncoder()
                          throws java.lang.Exception
Create a one-way single-threaded, nonshared codec instance able to encode a state as should be sent to a client or a downstream codec.

Returns:
the codec for encoding
Throws:
java.lang.Exception