public final class AsPathAttributeParser extends Object implements AttributeParser, AttributeSerializer
Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
AsPathAttributeParser(ReferenceCache refCache) |
Modifier and Type | Method and Description |
---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder)
Parses attribute from ByteBuf buffer.
|
void |
serializeAttribute(Attributes pathAttributes,
io.netty.buffer.ByteBuf byteAggregator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseAttribute
public static final int TYPE
public AsPathAttributeParser(ReferenceCache refCache)
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder) throws BGPDocumentedException, BGPParsingException
AttributeParser
parseAttribute
in interface AttributeParser
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
public void serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute
in interface AttributeSerializer
Copyright © 2019 OpenDaylight. All rights reserved.