Class EncapsulationEC
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.spi.extended.community.AbstractOpaqueExtendedCommunity
-
- org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.EncapsulationEC
-
- All Implemented Interfaces:
ExtendedCommunityParser,ExtendedCommunitySerializer
public class EncapsulationEC extends AbstractOpaqueExtendedCommunity
Parser for BGP Encapsulation extended community attribute.- See Also:
- BGP Encapsulation Extended Community
-
-
Field Summary
Fields Modifier and Type Field Description static intSUBTYPE
-
Constructor Summary
Constructors Constructor Description EncapsulationEC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSubType()Provides a sub-type of the extended community for which the serializer is registered.ExtendedCommunityparseExtendedCommunity(io.netty.buffer.ByteBuf buffer)Parses the Extended Community value encoded in the buffer.voidserializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body)Serializes Extended Community value to the buffer.-
Methods inherited from class org.opendaylight.protocol.bgp.parser.spi.extended.community.AbstractOpaqueExtendedCommunity
getType
-
-
-
-
Field Detail
-
SUBTYPE
public static final int SUBTYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseExtendedCommunity
public ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException, BGPParsingException
Description copied from interface:ExtendedCommunityParserParses the Extended Community value encoded in the buffer.- Parameters:
buffer- ByteBuf- Returns:
- Decoded Extended Community value.
- Throws:
BGPDocumentedExceptionBGPParsingException
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body)
Description copied from interface:ExtendedCommunitySerializerSerializes Extended Community value to the buffer.- Parameters:
extendedCommunity- ExtendedCommuity to be encoded.body- The output buffer where the extended community is written.
-
getSubType
public int getSubType()
Description copied from interface:ExtendedCommunitySerializerProvides a sub-type of the extended community for which the serializer is registered.- Returns:
- A sub-type of the extended community.
-
-