Package org.ow2.joram.mom.amqp
Class PublishRequest
- java.lang.Object
-
- org.ow2.joram.mom.amqp.PublishRequest
-
- All Implemented Interfaces:
Serializable
public class PublishRequest extends Object implements Serializable
Class used by theAMQPConnectionListenerto hold all the parameters (Basic.Publishmethod, header and body) necessary to publish a message while they are received on the socket.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bodyprivate intbodyReadintchannelprivate AMQP.Basic.BasicPropertiesheaderprivate AMQP.Basic.Publishpublishprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description PublishRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappendBody(byte[] bodyPart)byte[]getBody()AMQP.Basic.BasicPropertiesgetHeader()AMQP.Basic.PublishgetPublish()voidsetHeader(AMQP.Basic.BasicProperties header, long bodySize)set the header content.voidsetPublish(AMQP.Basic.Publish publish)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
publish
private AMQP.Basic.Publish publish
-
header
private AMQP.Basic.BasicProperties header
-
body
private byte[] body
-
bodyRead
private int bodyRead
-
channel
public int channel
-
-
Method Detail
-
setHeader
public void setHeader(AMQP.Basic.BasicProperties header, long bodySize)
set the header content.- Parameters:
classId-weight-bodySize-propertyFlags-propertyList-
-
getHeader
public AMQP.Basic.BasicProperties getHeader()
-
setPublish
public void setPublish(AMQP.Basic.Publish publish)
-
getPublish
public AMQP.Basic.Publish getPublish()
-
getBody
public byte[] getBody()
-
appendBody
public boolean appendBody(byte[] bodyPart)
-
-