public class OFPacketOut extends OFMessage implements OFActionFactoryAware
Modifier and Type | Field and Description |
---|---|
protected OFActionFactory |
actionFactory |
protected List<OFAction> |
actions |
protected short |
actionsLength |
static int |
BUFFER_ID_NONE |
protected int |
bufferId |
protected short |
inPort |
static int |
MINIMUM_LENGTH |
protected byte[] |
packetData |
Constructor and Description |
---|
OFPacketOut() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<OFAction> |
getActions()
Returns the actions contained in this message
|
short |
getActionsLength()
Get actions_len
|
int |
getActionsLengthU()
Get actions_len, unsigned
|
int |
getBufferId()
Get buffer_id
|
short |
getInPort()
Get in_port
|
byte[] |
getPacketData()
Returns the packet data
|
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
void |
setActionFactory(OFActionFactory actionFactory)
Sets the OFActionFactory
|
OFPacketOut |
setActions(List<OFAction> actions)
Sets the list of actions on this message
|
OFPacketOut |
setActionsLength(short actionsLength)
Set actions_len
|
OFPacketOut |
setBufferId(int bufferId)
Set buffer_id
|
OFPacketOut |
setInPort(OFPort inPort)
Set in_port.
|
OFPacketOut |
setInPort(short inPort)
Set in_port
|
OFPacketOut |
setPacketData(byte[] packetData)
Sets the packet data
|
String |
toString()
Returns a summary of the message
|
void |
validate()
validate the invariants of this OFMessage hold
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
getData, getDataAsString, getLength, getLengthU, getMessageStore, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid
public static int MINIMUM_LENGTH
public static int BUFFER_ID_NONE
protected OFActionFactory actionFactory
protected int bufferId
protected short inPort
protected short actionsLength
protected byte[] packetData
public int getBufferId()
public OFPacketOut setBufferId(int bufferId)
bufferId
- public byte[] getPacketData()
public OFPacketOut setPacketData(byte[] packetData)
packetData
- public short getInPort()
public OFPacketOut setInPort(short inPort)
inPort
- public OFPacketOut setInPort(OFPort inPort)
inPort
- public short getActionsLength()
public int getActionsLengthU()
public OFPacketOut setActionsLength(short actionsLength)
actionsLength
- public List<OFAction> getActions()
public OFPacketOut setActions(List<OFAction> actions)
actions
- a list of ordered OFAction objectspublic void setActionFactory(OFActionFactory actionFactory)
OFActionFactoryAware
setActionFactory
in interface OFActionFactoryAware
public void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void validate()
Copyright © 2015. All rights reserved.