Class BGPUpdateMessageParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.BGPUpdateMessageParser
-
- All Implemented Interfaces:
MessageParser
,MessageSerializer
public final class BGPUpdateMessageParser extends Object implements MessageParser, MessageSerializer
LENGTH fields, that denote the length of the fields with variable length, have fixed SIZE.- See Also:
- BGP-4 Update Message Format
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
-
Constructor Summary
Constructors Constructor Description BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Update
parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint)
Parse Update message from buffer.void
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BGPUpdateMessageParser
public BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg)
-
-
Method Detail
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
- Specified by:
serializeMessage
in interfaceMessageSerializer
-
parseMessageBody
public Update parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
Parse Update message from buffer. CallscheckMandatoryAttributesPresence(Update, RevisedErrorHandling)
to check for presence of mandatory attributes.- Specified by:
parseMessageBody
in interfaceMessageParser
- Parameters:
buffer
- Encoded BGP message in ByteBufmessageLength
- Length of the BGP messageconstraint
- Peer specific constraints- Returns:
- Parsed Update message body
- Throws:
BGPDocumentedException
-
-