com.anwrt.commons.hessian.model
Class HessianEnvelope

java.lang.Object
  extended by com.anwrt.commons.hessian.model.HessianValue
      extended by com.anwrt.commons.hessian.model.HessianSimple
          extended by com.anwrt.commons.hessian.model.HessianEnvelope

public class HessianEnvelope
extends HessianSimple

This class wrap a serialized message into a list of chunks. The envelope syntax enables compression, encryption, signatures or context headers to wrap a Hessian message.
creation : 26 sept. 2008

Author:
David FRANCOIS

Field Summary
static java.lang.String IDENTITY
          Encryption mode 0: ,o encryption
static byte version_major
          Hessian current major version byte
static byte version_minor
          Hessian current minor version byte
 
Constructor Summary
HessianEnvelope()
          Default constructor
HessianEnvelope(java.lang.String method)
          Constructor
 
Method Summary
 void addChunk(HessianEnvelopeChunk chunk)
           
 java.util.List getChunks()
           
 java.lang.String getMethod()
           
 void render(java.io.OutputStream os, AwtHessianSerializer ser)
          Renders the HessianValue to the given OutputStream.
 void setMethod(java.lang.String method)
           
 
Methods inherited from class com.anwrt.commons.hessian.model.HessianValue
getTypeString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY

public static final java.lang.String IDENTITY
Encryption mode 0: ,o encryption

See Also:
Constant Field Values

version_major

public static final byte version_major
Hessian current major version byte

See Also:
Constant Field Values

version_minor

public static final byte version_minor
Hessian current minor version byte

See Also:
Constant Field Values
Constructor Detail

HessianEnvelope

public HessianEnvelope()
Default constructor


HessianEnvelope

public HessianEnvelope(java.lang.String method)
Constructor

Parameters:
method - compression mode
Method Detail

render

public void render(java.io.OutputStream os,
                   AwtHessianSerializer ser)
            throws AwtHessianSerializerException
Description copied from class: HessianValue
Renders the HessianValue to the given OutputStream.

Specified by:
render in class HessianValue
Parameters:
os - to which to render
ser - an AwtHessianSerializer instance
Throws:
AwtHessianSerializerException

addChunk

public void addChunk(HessianEnvelopeChunk chunk)

getChunks

public java.util.List getChunks()

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)