public class Origin extends Object implements BgpValueType
| Modifier and Type | Class and Description |
|---|---|
static class |
Origin.OriginType
Enum to provide ORIGIN types.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAGS |
static byte |
ORIGIN_TYPE |
static byte |
ORIGIN_VALUE_LEN |
| Constructor and Description |
|---|
Origin(byte origin)
Constructor to initialize parameters.
|
| 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.
|
int |
hashCode() |
boolean |
isOriginSet()
Returns true if origin attribute is present otherwise false.
|
Origin.OriginType |
origin()
Returns type of Origin in Enum values.
|
static Origin |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from ChannelBuffer and parses Origin.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte ORIGIN_TYPE
public static final byte ORIGIN_VALUE_LEN
public static final byte FLAGS
public Origin(byte origin)
origin - origin valuepublic boolean isOriginSet()
public Origin.OriginType origin()
public static Origin read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing Origin path attributepublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.