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,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer.
|
abstract void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.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,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
org.opendaylight.protocol.bgp.parser.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 nullorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedorg.opendaylight.protocol.bgp.parser.BGPParsingException - when a general unspecified parsing error occurs.public abstract void parseAttribute(io.netty.buffer.ByteBuf buffer,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
org.opendaylight.protocol.bgp.parser.BGPParsingException,
org.opendaylight.protocol.bgp.parser.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 nullorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedorg.opendaylight.protocol.bgp.parser.BGPParsingException - when a general unspecified parsing error occurs.org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException - when parsing according to revised error handling indicates the
message should be treated as withdraw.Copyright © 2019 OpenDaylight. All rights reserved.