|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.client.impl.parser.ElementParser
org.jdiameter.client.impl.parser.MessageParser
public class MessageParser
| Field Summary | |
|---|---|
protected UIDGenerator |
endToEndGen
|
| Constructor Summary | |
|---|---|
MessageParser()
|
|
| Method Summary | ||
|---|---|---|
|
createEmptyMessage(java.lang.Class<?> iface,
IMessage parentMessage)
Created new message with copied of header of parent message |
|
|
createEmptyMessage(java.lang.Class<?> iface,
int commandCode,
long headerAppId)
Created specified type of message |
|
IMessage |
createEmptyMessage(IMessage prnMessage)
Created new message with copied of header of parent message |
|
IMessage |
createEmptyMessage(IMessage prnMessage,
int commandCode)
Created new message with copied of header of parent message |
|
IMessage |
createEmptyMessage(int commandCode,
long headerAppId)
Created empty message |
|
IMessage |
createMessage(java.nio.ByteBuffer data)
Create message from bytebuffer |
|
|
createMessage(java.lang.Class<?> iface,
java.nio.ByteBuffer data)
Created specified type of message |
|
java.nio.ByteBuffer |
encodeMessage(IMessage message)
Encode message to ByteBuffer |
|
int |
getNextEndToEndId()
|
|
| Methods inherited from class org.jdiameter.client.impl.parser.ElementParser |
|---|
addressToBytes, bytesToAddress, bytesToDate, bytesToDouble, bytesToFloat, bytesToInt, bytesToLong, bytesToObject, bytesToOctetString, bytesToUtf8String, dateToBytes, decodeAvpSet, decodeAvpSet, encodeAvp, encodeAvpSet, float32ToBytes, float64ToBytes, int32ToBytes, int64ToBytes, intU32ToBytes, objectToBytes, octetStringToBytes, prepareBuffer, utf8StringToBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UIDGenerator endToEndGen
| Constructor Detail |
|---|
public MessageParser()
| Method Detail |
|---|
public IMessage createMessage(java.nio.ByteBuffer data)
throws AvpDataException
IMessageParser
createMessage in interface IMessageParserdata - message bytebuffer
AvpDataException
public <T> T createMessage(java.lang.Class<?> iface,
java.nio.ByteBuffer data)
throws AvpDataException
IMessageParser
createMessage in interface IMessageParseriface - type of messagedata - message bytebuffer
AvpDataException
public <T> T createEmptyMessage(java.lang.Class<?> iface,
IMessage parentMessage)
IMessageParser
createEmptyMessage in interface IMessageParseriface - type of messageparentMessage - parent message
public IMessage createEmptyMessage(IMessage prnMessage)
IMessageParser
createEmptyMessage in interface IMessageParserprnMessage - parent message
public IMessage createEmptyMessage(IMessage prnMessage,
int commandCode)
IMessageParser
createEmptyMessage in interface IMessageParserprnMessage - parent messagecommandCode - new command code value
public java.nio.ByteBuffer encodeMessage(IMessage message)
throws ParseException
IMessageParser
encodeMessage in interface IMessageParsermessage - diameter message
ParseException
public IMessage createEmptyMessage(int commandCode,
long headerAppId)
IMessageParser
createEmptyMessage in interface IMessageParsercommandCode - message command codeheaderAppId - header applicatio id
public <T> T createEmptyMessage(java.lang.Class<?> iface,
int commandCode,
long headerAppId)
IMessageParser
createEmptyMessage in interface IMessageParseriface - type of messagecommandCode - message command codeheaderAppId - header applicatio id
public int getNextEndToEndId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||