public class As4Path extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
AS4PATH_TYPE |
static byte |
ASNUM_SIZE |
static byte |
FLAGS |
| Constructor and Description |
|---|
As4Path()
Initialize fields.
|
As4Path(List<Integer> as4pathSet,
List<Integer> as4pathSeq)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
as4PathSeq()
Returns list of ASNum in AS4path Sequence.
|
List<Integer> |
as4PathSet()
Returns list of ASNum in AS4path Set.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static As4Path |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from the channel buffer and parses As4Path.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte AS4PATH_TYPE
public static final byte ASNUM_SIZE
public static final byte FLAGS
public static As4Path read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing As4Pathpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic List<Integer> as4PathSeq()
public List<Integer> as4PathSet()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object