public final class BGPOpenMessageParser extends Object implements MessageParser, MessageSerializer
| Constructor and Description |
|---|
BGPOpenMessageParser(ParameterRegistry reg) |
| Modifier and Type | Method and Description |
|---|---|
Open |
parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength)
Parses given byte array to BGP Open message
|
void |
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf bytes)
Serializes given BGP Open message to byte array, without the header.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseMessageBodypublic static final int TYPE
public static final int AS_TRANS
public BGPOpenMessageParser(ParameterRegistry reg)
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf bytes)
serializeMessage in interface MessageSerializermsg - BGP Open message to be serialized.bytes - ByteBuf where the message will be serializedpublic Open parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength) throws BGPDocumentedException
parseMessageBody in interface MessageParserbody - byte array representing BGP Open message, without headermessageLength - the length of the messageOpen BGP Open MessageBGPDocumentedException - if the parsing was unsuccessfulCopyright © 2019 OpenDaylight. All rights reserved.