public class MBodyPortDesc extends OpenflowStructure implements MultipartBody
Modifier and Type | Class and Description |
---|---|
static class |
MBodyPortDesc.Array
Represents an array of port descriptions.
|
static class |
MBodyPortDesc.MutableArray
A mutable array of port descriptions.
|
parseErrorCause, version
Constructor and Description |
---|
MBodyPortDesc(ProtocolVersion pv)
Constructs a multipart body PORT_DESC type.
|
Modifier and Type | Method and Description |
---|---|
Port |
getPort()
Returns the list of ports; Since 1.3.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line string representation of this structure, with
the specified indentation.
|
String |
toString() |
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validate
getVersion
public MBodyPortDesc(ProtocolVersion pv)
pv
- the protocol versionpublic String toString()
toString
in class OpenflowStructure
public String toDebugString()
OpenflowStructure
OpenflowStructure.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowStructure
public String toDebugString(int indent)
indent
- the number of spaces to indentpublic int getTotalLength()
MultipartBody
getTotalLength
in interface MultipartBody
public Port getPort()
Copyright © 2015. All Rights Reserved.