public class OspfRouteTypeTlv extends Object implements BgpValueType
| Modifier and Type | Class and Description |
|---|---|
static class |
OspfRouteTypeTlv.RouteType
Enum for Route Type.
|
| Modifier and Type | Field and Description |
|---|---|
static short |
EXTERNAL_TYPE_1 |
static short |
EXTERNAL_TYPE_2 |
static short |
INTER_AREA_TYPE |
static int |
INTRA_AREA_TYPE |
static short |
LENGTH |
static short |
NSSA_TYPE_1 |
static short |
NSSA_TYPE_2 |
static short |
TYPE |
| Constructor and Description |
|---|
OspfRouteTypeTlv(byte routeType)
Constructor to initialize routeType.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
OspfRouteTypeTlv.RouteType |
getValue()
Returns RouteType.
|
int |
hashCode() |
static OspfRouteTypeTlv |
of(byte routeType)
Returns object of this class with specified routeType.
|
static OspfRouteTypeTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from ChannelBuffer and parses OSPFRouteTypeTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final short LENGTH
public static final int INTRA_AREA_TYPE
public static final short INTER_AREA_TYPE
public static final short EXTERNAL_TYPE_1
public static final short EXTERNAL_TYPE_2
public static final short NSSA_TYPE_1
public static final short NSSA_TYPE_2
public OspfRouteTypeTlv(byte routeType)
routeType - Route typepublic static OspfRouteTypeTlv of(byte routeType)
routeType - Route typepublic OspfRouteTypeTlv.RouteType getValue() throws BgpParseException
BgpParseException - if routeType is not matchedpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static OspfRouteTypeTlv read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channelBufferpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.