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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseMessageBody
(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 Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
BGPUpdateMessageParser
-
-
Method Details
-
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
-