public final class LinkstateAttributeParser extends AbstractAttributeParser implements AttributeSerializer
| Constructor and Description |
|---|
LinkstateAttributeParser(boolean isIanaAssignedType,
RSVPTeObjectRegistry rsvpTeObjectRegistry) |
| Modifier and Type | Method and Description |
|---|---|
int |
getType() |
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)
Serialize linkstate attributes.
|
parseAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitignoreDuplicatespublic LinkstateAttributeParser(boolean isIanaAssignedType,
RSVPTeObjectRegistry rsvpTeObjectRegistry)
public int getType()
public void parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
throws BGPParsingException
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 nullBGPParsingException - when a general unspecified parsing error occurs.public void serializeAttribute(Attributes attribute, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute in interface AttributeSerializerattribute - DataObject representing LinkstatePathAttributebyteAggregator - ByteBuf where all serialized data are aggregatedCopyright © 2020 OpenDaylight. All rights reserved.