Class BGPNotificationMessageParser

java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.BGPNotificationMessageParser
All Implemented Interfaces:
MessageParser, MessageSerializer

public final class BGPNotificationMessageParser extends Object implements MessageParser, MessageSerializer
Parser for BGPNotification message.
  • Field Details

  • Constructor Details

    • BGPNotificationMessageParser

      public BGPNotificationMessageParser()
  • Method Details

    • serializeMessage

      public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> msg, io.netty.buffer.ByteBuf bytes)
      Serializes BGP Notification message.
      Specified by:
      serializeMessage in interface MessageSerializer
      Parameters:
      msg - to be serialized
      bytes - ByteBuf where the message will be serialized
    • parseMessageBody

      public Notify parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
      Parses BGP Notification message to bytes.
      Specified by:
      parseMessageBody in interface MessageParser
      Parameters:
      body - ByteBuf to be parsed
      messageLength - the length of the message
      constraint - Peer specific constraints, implementations may ignore them.
      Returns:
      Notify which represents BGP notification message
      Throws:
      BGPDocumentedException - if parsing goes wrong