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 Details

  • Constructor Details

  • Method Details

    • serializeMessage

      public void serializeMessage(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
      Specified by:
      serializeMessage in interface MessageSerializer
    • parseMessageBody

      public Update parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
      Parse Update message from buffer. Calls checkMandatoryAttributesPresence(Update, RevisedErrorHandling) to check for presence of mandatory attributes.
      Specified by:
      parseMessageBody in 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