org.openflow.gui.net.protocol
Class Request

java.lang.Object
  extended by org.openflow.gui.net.protocol.OFGMessage
      extended by org.openflow.gui.net.protocol.Request
All Implemented Interfaces:
Message<OFGMessageType>
Direct Known Subclasses:
RequestLinks

public class Request
extends OFGMessage

A generic request.

Author:
David Underhill

Field Summary
static short ANY_TYPE
           
 RequestType requestType
          what kind of request this is
 short type
          the type of Node, Link, or Flow (etc) this is for
 
Fields inherited from class org.openflow.gui.net.protocol.OFGMessage
SIZEOF, timeCreated, TSSEP, xid
 
Constructor Summary
Request(OFGMessageType msgType, RequestType requestType)
           
Request(OFGMessageType msgType, RequestType requestType, short type)
           
 
Method Summary
 int length()
          This returns the message length
 java.lang.String toString()
          String representation of the message including the date and type.
 void write(java.io.DataOutput out)
          Writes the header (via super.write()) and a byte representing the subscription state
 
Methods inherited from class org.openflow.gui.net.protocol.OFGMessage
getType, isStatefulReply, isStatefulRequest, timeCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_TYPE

public static final short ANY_TYPE
See Also:
Constant Field Values

requestType

public final RequestType requestType
what kind of request this is


type

public final short type
the type of Node, Link, or Flow (etc) this is for

Constructor Detail

Request

public Request(OFGMessageType msgType,
               RequestType requestType)

Request

public Request(OFGMessageType msgType,
               RequestType requestType,
               short type)
Method Detail

length

public int length()
This returns the message length

Overrides:
length in class OFGMessage

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Writes the header (via super.write()) and a byte representing the subscription state

Overrides:
write in class OFGMessage
Throws:
java.io.IOException

toString

public java.lang.String toString()
Description copied from class: OFGMessage
String representation of the message including the date and type. Also includes the transaction ID if it is non-zero.

Overrides:
toString in class OFGMessage