Class SourceTreeJoinHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.impl.nlri.SourceTreeJoinHandler
-
- All Implemented Interfaces:
MvpnParser<SourceTreeJoinCase>
,MvpnSerializer<SourceTreeJoinCase>
public final class SourceTreeJoinHandler extends Object
https://tools.ietf.org/html/rfc6514#section-4.6.- Author:
- Claudio D. Gasparini
-
-
Constructor Summary
Constructors Constructor Description SourceTreeJoinHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends MvpnChoice>
getClazz()
returns class of MvpnChoice handled by serializer.int
getType()
Returns NlriType handled by parser.SourceTreeJoinCase
parseMvpn(io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Mvpn.protected io.netty.buffer.ByteBuf
serializeBody(SourceTreeJoinCase mvpn)
io.netty.buffer.ByteBuf
serializeMvpn(T mvpn)
Serialize mvpn.
-
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:MvpnParser
Returns NlriType handled by parser.- Returns:
- NlriType
-
parseMvpn
public SourceTreeJoinCase parseMvpn(io.netty.buffer.ByteBuf buffer)
Description copied from interface:MvpnParser
Decode input buffer to BGP Mvpn.- Parameters:
buffer
- encoded Mvpn body in Bytebuf- Returns:
- Mvpn
-
serializeBody
protected io.netty.buffer.ByteBuf serializeBody(SourceTreeJoinCase mvpn)
-
getClazz
public Class<? extends MvpnChoice> getClazz()
Description copied from interface:MvpnSerializer
returns class of MvpnChoice handled by serializer.- Returns:
- MvpnChoice Class
-
serializeMvpn
public final io.netty.buffer.ByteBuf serializeMvpn(T mvpn)
Description copied from interface:MvpnSerializer
Serialize mvpn.- Specified by:
serializeMvpn
in interfaceMvpnSerializer<T extends MvpnChoice>
- Parameters:
mvpn
- mvpn- Returns:
- Encode mvpn to output buffer
-
-