|
||||||||||
| 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
|
protected java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
MessageParser(org.jdiameter.api.MetaData metaData)
|
|
| 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 |
|
org.jdiameter.client.impl.parser.AvpSetImpl |
decodeAvpSet(byte[] message)
|
|
byte[] |
encodeAvp(org.jdiameter.client.impl.parser.AvpImpl avp)
|
|
byte[] |
encodeAvpSet(org.jdiameter.api.AvpSet avps)
|
|
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, 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 java.util.logging.Logger logger
protected UIDGenerator endToEndGen
| Constructor Detail |
|---|
public MessageParser(org.jdiameter.api.MetaData metaData)
| Method Detail |
|---|
public IMessage createMessage(java.nio.ByteBuffer data)
throws org.jdiameter.api.AvpDataException
IMessageParser
createMessage in interface IMessageParserdata - message bytebuffer
org.jdiameter.api.AvpDataException
public org.jdiameter.client.impl.parser.AvpSetImpl decodeAvpSet(byte[] message)
throws java.io.IOException
java.io.IOException
public <T> T createMessage(java.lang.Class<?> iface,
java.nio.ByteBuffer data)
throws org.jdiameter.api.AvpDataException
IMessageParser
createMessage in interface IMessageParseriface - type of messagedata - message bytebuffer
org.jdiameter.api.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 DecodeException
IMessageParser
encodeMessage in interface IMessageParsermessage - diameter message
DecodeExceptionpublic byte[] encodeAvpSet(org.jdiameter.api.AvpSet avps)
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 byte[] encodeAvp(org.jdiameter.client.impl.parser.AvpImpl avp)
public int getNextEndToEndId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||