org.openflow.protocol.action
Class OFActionPopMPLS

java.lang.Object
  extended by org.openflow.protocol.action.OFAction
      extended by org.openflow.protocol.action.OFActionPopMPLS
All Implemented Interfaces:
java.lang.Cloneable

public class OFActionPopMPLS
extends OFAction

Represents an ofp_action_pop_mpls

Author:
David Erickson (daviderickson@cs.stanford.edu) - Mar 11, 2010

Field Summary
protected  short etherType
           
static int MINIMUM_LENGTH
           
 
Fields inherited from class org.openflow.protocol.action.OFAction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFActionPopMPLS()
           
OFActionPopMPLS(short etherType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 short getEtherType()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 OFActionPopMPLS setEtherType(short etherType)
           
 java.lang.String toString()
          Returns a summary of the message
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class org.openflow.protocol.action.OFAction
clone, fromString, getLength, getLengthU, getType, setLength, setType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

etherType

protected short etherType
Constructor Detail

OFActionPopMPLS

public OFActionPopMPLS()

OFActionPopMPLS

public OFActionPopMPLS(short etherType)
Method Detail

getEtherType

public short getEtherType()
Returns:
the etherType

setEtherType

public OFActionPopMPLS setEtherType(short etherType)
Parameters:
etherType - the etherType to set

readFrom

public void readFrom(java.nio.ByteBuffer data)
Overrides:
readFrom in class OFAction

writeTo

public void writeTo(java.nio.ByteBuffer data)
Overrides:
writeTo in class OFAction

hashCode

public int hashCode()
Overrides:
hashCode in class OFAction

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OFAction

toString

public java.lang.String toString()
Description copied from class: OFAction
Returns a summary of the message

Overrides:
toString in class OFAction
Returns:
"ofmsg=v=$version;t=$type:l=$len:xid=$xid"