Interface MessageParser
- All Known Implementing Classes:
BGPKeepAliveMessageParser
,BGPNotificationMessageParser
,BGPOpenMessageParser
,BGPRouteRefreshMessageParser
,BGPUpdateMessageParser
@NonNullByDefault
public interface MessageParser
Common interface for message parser implementation.
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.binding.Notification
<?> parseMessageBody
(io.netty.buffer.ByteBuf body, int messageLength, @Nullable PeerSpecificParserConstraint constraint) Parse BGP Message from buffer, potentially applying peer-specific constraints.
-
Method Details
-
parseMessageBody
org.opendaylight.yangtools.binding.Notification<?> parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, @Nullable PeerSpecificParserConstraint constraint) throws BGPDocumentedException Parse BGP Message from buffer, potentially applying peer-specific constraints. Implementations are free- Parameters:
body
- Encoded BGP message in ByteBuf.messageLength
- Length of the BGP message.constraint
- Peer specific constraints, implementations may ignore them.- Returns:
- Parsed BGP Message body.
- Throws:
BGPDocumentedException
-