public abstract class AbstractAttributeParser extends Object implements AttributeParser
RevisedErrorHandling. Inheriting from this class
requires that parseAttribute(ByteBuf, AttributesBuilder, RevisedErrorHandling, PeerSpecificParserConstraint)
is provided and the simplified parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint)
is implemented by this class.| Constructor and Description |
|---|
AbstractAttributeParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer.
|
abstract void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer with the specified
RevisedErrorHandling. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitignoreDuplicatespublic final void parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
throws BGPDocumentedException,
BGPParsingException
AttributeParserparseAttribute in interface AttributeParserbuffer - 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, may be nullBGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedBGPParsingException - when a general unspecified parsing error occurs.public abstract void parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
throws BGPDocumentedException,
BGPParsingException,
BGPTreatAsWithdrawException
AttributeParserRevisedErrorHandling. Default implementation
ignores error handling and defers to
AttributeParser.parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint).parseAttribute in interface AttributeParserbuffer - 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.errorHandling - RFC7606 error handling typeconstraint - Peer specific constraints, may be nullBGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedBGPParsingException - when a general unspecified parsing error occurs.BGPTreatAsWithdrawException - when parsing according to revised error handling indicates the
message should be treated as withdraw.Copyright © 2020 OpenDaylight. All rights reserved.