Class RouteTargetDefaultHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.route.targetcontrain.impl.nlri.RouteTargetDefaultHandler
-
- All Implemented Interfaces:
RouteTargetConstrainParser<RouteTargetConstrainDefaultCase>
,RouteTargetConstrainSerializer<RouteTargetConstrainDefaultCase>
,RouteTargetHandler<RouteTargetConstrainDefaultCase>
public final class RouteTargetDefaultHandler extends Object implements RouteTargetHandler<RouteTargetConstrainDefaultCase>
Default Route Target nlri.- Author:
- Claudio D. Gasparini
-
-
Constructor Summary
Constructors Constructor Description RouteTargetDefaultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<RouteTargetConstrainDefaultCase>
getClazz()
returns class of RouteTargetChoice handled by serializer.Integer
getType()
Returns NlriType handled by parser.RouteTargetConstrainDefaultCase
parseRouteTargetConstrain(io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Route Target.io.netty.buffer.ByteBuf
serializeRouteTargetConstrain(RouteTargetConstrainDefaultCase routeTarget)
Serialize routeTarget.
-
-
-
Method Detail
-
parseRouteTargetConstrain
public RouteTargetConstrainDefaultCase parseRouteTargetConstrain(io.netty.buffer.ByteBuf buffer)
Description copied from interface:RouteTargetConstrainParser
Decode input buffer to BGP Route Target.- Specified by:
parseRouteTargetConstrain
in interfaceRouteTargetConstrainParser<RouteTargetConstrainDefaultCase>
- Parameters:
buffer
- encoded RouteTarget body in Bytebuf- Returns:
- Route Target
-
getType
public Integer getType()
Description copied from interface:RouteTargetConstrainParser
Returns NlriType handled by parser.- Specified by:
getType
in interfaceRouteTargetConstrainParser<RouteTargetConstrainDefaultCase>
- Specified by:
getType
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainDefaultCase>
- Returns:
- NlriType
-
serializeRouteTargetConstrain
public io.netty.buffer.ByteBuf serializeRouteTargetConstrain(RouteTargetConstrainDefaultCase routeTarget)
Description copied from interface:RouteTargetConstrainSerializer
Serialize routeTarget.- Specified by:
serializeRouteTargetConstrain
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainDefaultCase>
- Parameters:
routeTarget
- routeTarget- Returns:
- Encode routeTarget to output buffer
-
getClazz
public Class<RouteTargetConstrainDefaultCase> getClazz()
Description copied from interface:RouteTargetConstrainSerializer
returns class of RouteTargetChoice handled by serializer.- Specified by:
getClazz
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainDefaultCase>
- Returns:
- RouteTargetChoice Class
-
-