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 SummaryFields Modifier and Type Field Description static intTYPE
 - 
Constructor SummaryConstructors Constructor Description BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateparseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint)Parse Update message from buffer.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
 
- 
- 
- 
Field Detail- 
TYPEpublic static final int TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
BGPUpdateMessageParserpublic BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg) 
 
- 
 - 
Method Detail- 
serializeMessagepublic void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)- Specified by:
- serializeMessagein interface- MessageSerializer
 
 - 
parseMessageBodypublic 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:
- parseMessageBodyin interface- MessageParser
- Parameters:
- buffer- Encoded BGP message in ByteBuf
- messageLength- Length of the BGP message
- constraint- Peer specific constraints
- Returns:
- Parsed Update message body
- Throws:
- BGPDocumentedException
 
 
- 
 
-