Class Generic4OctASEcHandler
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.extended.community.Abstract4OctetAsExtendedCommunity
org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.four.octect.as.specific.Generic4OctASEcHandler
- All Implemented Interfaces:
ExtendedCommunityParser
,ExtendedCommunitySerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Provides a sub-type of the extended community for which the serializer is registered.parseExtendedCommunity
(io.netty.buffer.ByteBuf body) Parses the Extended Community value encoded in the buffer.void
serializeExtendedCommunity
(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.Abstract4OctetAsExtendedCommunity
getType
-
Constructor Details
-
Generic4OctASEcHandler
public Generic4OctASEcHandler()
-
-
Method Details
-
parseExtendedCommunity
public ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf body) throws BGPDocumentedException, BGPParsingException Description copied from interface:ExtendedCommunityParser
Parses the Extended Community value encoded in the buffer.- Parameters:
body
- ByteBuf- Returns:
- Decoded Extended Community value.
- Throws:
BGPDocumentedException
BGPParsingException
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body) Description copied from interface:ExtendedCommunitySerializer
Serializes 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:ExtendedCommunitySerializer
Provides a sub-type of the extended community for which the serializer is registered.- Returns:
- A sub-type of the extended community.
-