org.objectweb.joram.mom.amqp.marshalling
Class MarshallingHeader
java.lang.Object
org.objectweb.joram.mom.amqp.marshalling.MarshallingHeader
- All Implemented Interfaces:
- FrameBuilder
public class MarshallingHeader
- extends java.lang.Object
- implements FrameBuilder
Field Summary |
static org.objectweb.util.monolog.api.Logger |
logger
|
protected static int |
NULL_CLASS_ID
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static org.objectweb.util.monolog.api.Logger logger
NULL_CLASS_ID
protected static final int NULL_CLASS_ID
- See Also:
- Constant Field Values
MarshallingHeader
public MarshallingHeader(int classId,
long bodySize,
AMQP.Basic.BasicProperties basicProperties)
- Constructs an
MarshallingHeader
.
MarshallingHeader
public MarshallingHeader()
getClassId
public int getClassId()
setBodySize
public void setBodySize(long bodySize)
- Parameters:
bodySize
- the bodySize to set
setClassId
public void setClassId(int classId)
- Parameters:
classId
- the classId to set
getBodySize
public long getBodySize()
- Returns:
- the bodySize
getBasicProperties
public AMQP.Basic.BasicProperties getBasicProperties()
- Returns:
- the basicProperties
setBasicProperties
public void setBasicProperties(AMQP.Basic.BasicProperties basicProperties)
- Parameters:
basicProperties
- the basicProperties to set
read
public static MarshallingHeader read(byte[] payload)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toFrame
public Frame toFrame(int channelNumber)
throws java.io.IOException
- Specified by:
toFrame
in interface FrameBuilder
- Throws:
java.io.IOException
Copyright © 2005 Scalagent - All rights reserved