|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.amf.ActionMessage
public class ActionMessage
This class represents a protocol message with its collection of headers and bodies.
| Field Summary | |
|---|---|
static int |
CURRENT_VERSION
Current protocol version is 3. |
| Constructor Summary | |
|---|---|
ActionMessage()
Create a message using the current protocol version and UTF-8 encoding. |
|
ActionMessage(int version)
Create a message with a given protocol version and encoding. |
|
| Method Summary | |
|---|---|
void |
addBody(MessageBody b)
Add a body to the message. |
void |
addHeader(MessageHeader h)
Add a header to the message. |
ArrayList |
getBodies()
Retrieve all message bodies. |
MessageBody |
getBody(int pos)
Retrieve a particular message body. |
int |
getBodyCount()
Retrieve the number of bodies in the message. |
MessageHeader |
getHeader(int pos)
Retrieve a particular message header. |
int |
getHeaderCount()
Retrieve the number of headers in the message. |
ArrayList |
getHeaders()
Retrieve all message header. |
int |
getVersion()
Retrieve the protocol version of the message. |
void |
setVersion(int version)
Override the protocol version of the message. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CURRENT_VERSION
| Constructor Detail |
|---|
public ActionMessage()
public ActionMessage(int version)
version - Protocol version| Method Detail |
|---|
public int getVersion()
public void setVersion(int version)
version - protocol version of current messagepublic int getHeaderCount()
public MessageHeader getHeader(int pos)
pos - MessageHeader position [0, getHeaderCount())
public ArrayList getHeaders()
public void addHeader(MessageHeader h)
h - MessageHeader to addpublic int getBodyCount()
public MessageBody getBody(int pos)
pos - MessageBody position [0, getBodyCount())
public ArrayList getBodies()
public void addBody(MessageBody b)
b - MessageBody to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amf/ActionMessage.html