public class AsPath extends Object implements BgpValueType
| Modifier and Type | Class and Description |
|---|---|
static class |
AsPath.AsType
Enum to provide AS types.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
ASNUM_SIZE |
static byte |
ASPATH_SEQ_TYPE |
static byte |
ASPATH_SET_TYPE |
static byte |
ASPATH_TYPE |
static byte |
FLAGS |
| Constructor and Description |
|---|
AsPath()
Initialize Fields.
|
AsPath(List<Short> aspathSet,
List<Short> aspathSeq)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
List<Short> |
asPathSeq()
Returns list of ASNum in ASpath Sequence.
|
List<Short> |
asPathSet()
Returns list of ASNum in ASpath SET.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
boolean |
isaspathSet()
Returns whether ASpath path attribute is present.
|
static AsPath |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from the channel buffer and parses AsPath.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte ASPATH_TYPE
public static final byte ASPATH_SET_TYPE
public static final byte ASPATH_SEQ_TYPE
public static final byte ASNUM_SIZE
public static final byte FLAGS
public static AsPath read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing AsPathpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic boolean isaspathSet()
public List<Short> asPathSeq()
public List<Short> asPathSet()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object