public interface AttributeParser
Modifier and Type | Method and Description |
---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder)
Parses attribute from ByteBuf buffer.
|
default void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
Invokes
parseAttribute(ByteBuf, AttributesBuilder) , so the constraint is omitted. |
void parseAttribute(@Nonnull io.netty.buffer.ByteBuf buffer, @Nonnull AttributesBuilder builder) throws BGPDocumentedException, BGPParsingException
buffer
- Encoded attribute body in ByteBuf.builder
- Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
lower than this attribute's type.BGPDocumentedException
BGPParsingException
default void parseAttribute(@Nonnull io.netty.buffer.ByteBuf buffer, @Nonnull AttributesBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingException
parseAttribute(ByteBuf, AttributesBuilder)
, so the constraint is omitted. Override for specific parser behavior.buffer
- Encoded attribute body in ByteBuf.builder
- Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
lower than this attribute's type.constraint
- Peer specific constraints.BGPDocumentedException
BGPParsingException
Copyright © 2018 OpenDaylight. All rights reserved.