public class As4Path extends java.lang.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(java.util.List<java.lang.Integer> as4pathSet,
java.util.List<java.lang.Integer> as4pathSeq)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Integer> |
as4PathSeq()
Returns list of ASNum in AS4path Sequence.
|
java.util.List<java.lang.Integer> |
as4PathSet()
Returns list of ASNum in AS4path Set.
|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.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.
|
java.lang.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 As4Path()
public As4Path(java.util.List<java.lang.Integer> as4pathSet,
java.util.List<java.lang.Integer> as4pathSeq)
as4pathSet - AS4path Setas4pathSeq - AS4path Sequencepublic static As4Path read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing As4Pathpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic java.util.List<java.lang.Integer> as4PathSeq()
public java.util.List<java.lang.Integer> as4PathSet()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object