public class OfmPacketOut extends OpenflowMessage
length
Modifier and Type | Method and Description |
---|---|
List<Action> |
getActions()
Returns the action list defining how the packet should be processed by
the switch; Since 1.0.
|
BufferId |
getBufferId()
Returns the buffer ID assigned by datapath
(BufferId.NO_BUFFER if none); since 1.0.
|
byte[] |
getData()
Returns a copy of the packet data; Since 1.0.
|
int |
getDataLength()
Returns the number of bytes of packet data.
|
BigPortNumber |
getInPort()
Returns the packet's input port or Port.CONTROLLER; Since 1.0.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line string representation of this packet out message.
|
String |
toString() |
void |
validate()
Validates this message for completeness and throws an exception
if the message is considered "not complete".
|
decodeHeader, getType, getVersion, getXid, hex, hex, length
public String toString()
toString
in class OpenflowMessage
public String toDebugString(int indent)
indent
- the additional indentpublic String toDebugString()
OpenflowMessage
OpenflowMessage.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowMessage
public void validate() throws IncompleteMessageException
OpenflowMessage
This default implementation does nothing, i.e. default behavior is that messages are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate
in class OpenflowMessage
IncompleteMessageException
- if the message is not completepublic BufferId getBufferId()
public BigPortNumber getInPort()
public List<Action> getActions()
public byte[] getData()
public int getDataLength()
Copyright © 2015. All Rights Reserved.