org.apache.qpid.transport
Class MessageTransfer

java.lang.Object
  extended by org.apache.qpid.transport.Struct
      extended by org.apache.qpid.transport.Method
          extended by org.apache.qpid.transport.MessageTransfer
All Implemented Interfaces:
Encodable, ProtocolEvent

public final class MessageTransfer
extends Method


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.transport.Method
Method.CompletionListener
 
Field Summary
static int TYPE
           
 
Fields inherited from class org.apache.qpid.transport.Struct
dirty
 
Constructor Summary
MessageTransfer()
           
MessageTransfer(String destination, MessageAcceptMode acceptMode, MessageAcquireMode acquireMode, Header header, ByteBuffer body, Option... _options)
           
 
Method Summary
 MessageTransfer acceptMode(MessageAcceptMode value)
           
 MessageTransfer acquireMode(MessageAcquireMode value)
           
 MessageTransfer body(ByteBuffer body)
           
 MessageTransfer clearAcceptMode()
           
 MessageTransfer clearAcquireMode()
           
 MessageTransfer clearDestination()
           
 MessageTransfer destination(String value)
           
<C> void
dispatch(C context, MethodDelegate<C> delegate)
           
 MessageAcceptMode getAcceptMode()
           
 MessageAcquireMode getAcquireMode()
           
 ByteBuffer getBody()
           
 byte[] getBodyBytes()
           
 String getBodyString()
           
 String getDestination()
           
 byte getEncodedTrack()
           
 Map<String,Object> getFields()
           
 Header getHeader()
           
 int getPackWidth()
           
 int getSizeWidth()
           
 int getStructType()
           
 boolean hasAcceptMode()
           
 boolean hasAcquireMode()
           
 boolean hasDestination()
           
 boolean hasPayload()
           
 MessageTransfer header(Header header)
           
 void read(Decoder dec)
          Decodes this encodable using the given decoder.
 MessageTransfer setAcceptMode(MessageAcceptMode value)
           
 MessageTransfer setAcquireMode(MessageAcquireMode value)
           
 void setBody(byte[] body)
           
 void setBody(ByteBuffer body)
           
 void setBody(String body)
           
 MessageTransfer setDestination(String value)
           
 void setHeader(Header header)
           
 void write(Encoder enc)
          Encodes this encodable using the given encoder.
 
Methods inherited from class org.apache.qpid.transport.Method
complete, create, delegate, getBodySize, getChannel, getId, hasCompletionListener, idSet, isBatch, isSync, isUnreliable, setBatch, setChannel, setCompletionListener, setId, setSync, setUnreliable, toString
 
Methods inherited from class org.apache.qpid.transport.Struct
getEncodedType, isDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
See Also:
Constant Field Values
Constructor Detail

MessageTransfer

public MessageTransfer()

MessageTransfer

public MessageTransfer(String destination,
                       MessageAcceptMode acceptMode,
                       MessageAcquireMode acquireMode,
                       Header header,
                       ByteBuffer body,
                       Option... _options)
Method Detail

getStructType

public final int getStructType()
Specified by:
getStructType in class Struct

getSizeWidth

public final int getSizeWidth()
Specified by:
getSizeWidth in class Struct

getPackWidth

public final int getPackWidth()
Specified by:
getPackWidth in class Struct

hasPayload

public final boolean hasPayload()
Specified by:
hasPayload in class Method

getEncodedTrack

public final byte getEncodedTrack()
Specified by:
getEncodedTrack in interface ProtocolEvent
Specified by:
getEncodedTrack in class Method

dispatch

public <C> void dispatch(C context,
                         MethodDelegate<C> delegate)
Specified by:
dispatch in class Method

hasDestination

public final boolean hasDestination()

clearDestination

public final MessageTransfer clearDestination()

getDestination

public final String getDestination()

setDestination

public final MessageTransfer setDestination(String value)

destination

public final MessageTransfer destination(String value)

hasAcceptMode

public final boolean hasAcceptMode()

clearAcceptMode

public final MessageTransfer clearAcceptMode()

getAcceptMode

public final MessageAcceptMode getAcceptMode()

setAcceptMode

public final MessageTransfer setAcceptMode(MessageAcceptMode value)

acceptMode

public final MessageTransfer acceptMode(MessageAcceptMode value)

hasAcquireMode

public final boolean hasAcquireMode()

clearAcquireMode

public final MessageTransfer clearAcquireMode()

getAcquireMode

public final MessageAcquireMode getAcquireMode()

setAcquireMode

public final MessageTransfer setAcquireMode(MessageAcquireMode value)

acquireMode

public final MessageTransfer acquireMode(MessageAcquireMode value)

getHeader

public final Header getHeader()
Overrides:
getHeader in class Method

setHeader

public final void setHeader(Header header)
Overrides:
setHeader in class Method

header

public final MessageTransfer header(Header header)

getBody

public final ByteBuffer getBody()
Overrides:
getBody in class Method

setBody

public final void setBody(ByteBuffer body)
Overrides:
setBody in class Method

body

public final MessageTransfer body(ByteBuffer body)

getBodyBytes

public final byte[] getBodyBytes()

setBody

public final void setBody(byte[] body)

getBodyString

public final String getBodyString()

setBody

public final void setBody(String body)

write

public void write(Encoder enc)
Description copied from interface: Encodable
Encodes this encodable using the given encoder.

Specified by:
write in interface Encodable
Specified by:
write in class Struct
Parameters:
enc - the encoder.

read

public void read(Decoder dec)
Description copied from interface: Encodable
Decodes this encodable using the given decoder.

Specified by:
read in interface Encodable
Specified by:
read in class Struct
Parameters:
dec - the decoder.

getFields

public Map<String,Object> getFields()
Specified by:
getFields in class Struct


Licensed to the Apache Software Foundation