|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.service.io.rpg.RpgMessage
public class RpgMessage
Representation of an RPG message (RPG header + message body if one exists).
Field Summary | |
---|---|
private byte[] |
mBody
|
private RpgHeader |
mHeader
|
private static int |
RPG_HEADER_LENGTH
|
Constructor Summary | |
---|---|
RpgMessage(RpgHeader header)
Constructor creating RPG message with suppled RpgHeader. |
|
RpgMessage(RpgHeader header,
byte[] body)
Constructor creating RPG message with suppled RpgHeader and message body. |
Method Summary | |
---|---|
byte[] |
body()
Return message body as byte array |
static byte[] |
createRpgMessage(byte[] payload,
int type,
int requestId)
Create RPG message from supplied data |
RpgHeader |
header()
Return the RPG header for this message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RpgHeader mHeader
private byte[] mBody
private static final int RPG_HEADER_LENGTH
Constructor Detail |
---|
RpgMessage(RpgHeader header)
header
- RPG header for this message.RpgMessage(RpgHeader header, byte[] body)
header
- RPG header for this message.body
- byte array containing message body.Method Detail |
---|
public RpgHeader header()
public byte[] body()
public static byte[] createRpgMessage(byte[] payload, int type, int requestId)
payload
- Message body - Hessian encoded.type
- RPG message type.requestId
- Request ID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc