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.
|
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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalidategetVersionpublic MBodyPortDesc(ProtocolVersion pv)
pv - the protocol versionpublic String toString()
toString in class OpenflowStructurepublic String toDebugString()
OpenflowStructureOpenflowStructure.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowStructurepublic String toDebugString(int indent)
indent - the number of spaces to indentpublic int getTotalLength()
MultipartBodygetTotalLength in interface MultipartBodypublic Port getPort()
Copyright © 2014. All Rights Reserved.