public final class LocalPreferenceAttributeParser extends AbstractAttributeParser implements AttributeSerializer
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
| Constructor and Description |
|---|
LocalPreferenceAttributeParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer with the specified
RevisedErrorHandling. |
void |
serializeAttribute(Attributes attribute,
io.netty.buffer.ByteBuf byteAggregator) |
parseAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitignoreDuplicatespublic static final int TYPE
public void parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
throws BGPDocumentedException,
BGPTreatAsWithdrawException
AttributeParserRevisedErrorHandling. Default implementation
ignores error handling and defers to
AttributeParser.parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint).parseAttribute in interface AttributeParserparseAttribute in class AbstractAttributeParserbuffer - 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 assignedBGPTreatAsWithdrawException - when parsing according to revised error handling indicates the
message should be treated as withdraw.public void serializeAttribute(Attributes attribute, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute in interface AttributeSerializerCopyright © 2020 OpenDaylight. All rights reserved.