public interface MessageParser
Modifier and Type | Method and Description |
---|---|
org.opendaylight.yangtools.yang.binding.Notification |
parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength)
Parse BGP Message from buffer.
|
default org.opendaylight.yangtools.yang.binding.Notification |
parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength,
PeerSpecificParserConstraint constraint)
Invokes
parseMessageBody(ByteBuf, int) , so the constraint is omitted. |
@Nonnull org.opendaylight.yangtools.yang.binding.Notification parseMessageBody(@Nonnull io.netty.buffer.ByteBuf body, int messageLength) throws BGPDocumentedException
body
- Encoded BGP message in ByteBuf.messageLength
- Length of the BGP message.BGPDocumentedException
@Nonnull default org.opendaylight.yangtools.yang.binding.Notification parseMessageBody(@Nonnull io.netty.buffer.ByteBuf body, int messageLength, @Nullable PeerSpecificParserConstraint constraint) throws BGPDocumentedException
parseMessageBody(ByteBuf, int)
, so the constraint is omitted. Override for specific parser behavior.body
- Encoded BGP message in ByteBuf.messageLength
- Length of the BGP message.constraint
- Peer specific constraints.BGPDocumentedException
Copyright © 2018 OpenDaylight. All rights reserved.