com.h3c.of.lib.mp

## Class MBodyPortDesc

- java.lang.Object
- - com.h3c.of.lib.OpenflowStructure
  - - com.h3c.of.lib.mp.MBodyPortDesc

- All Implemented Interfaces:
    MultipartBody, Structure

      public class MBodyPortDesc
      extends OpenflowStructure
      implements MultipartBody

  Represents a port description; part of a reply to a port-description request multipart message; since 1.3.

- - ### Nested Class Summary

    Nested Classes
    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.

  - ### Field Summary

    - ### Fields inherited from class com.h3c.of.lib.OpenflowStructure

      `version`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MBodyPortDesc(ProtocolVersion pv)` Constructs a multipart body PORT_DESC type.

  - ### Method Summary

    Methods
    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()`

    - ### Methods inherited from class com.h3c.of.lib.OpenflowStructure

      `getVersion, hex, hex, validate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface com.h3c.of.lib.mp.MultipartBody

      `validate`

    - ### Methods inherited from interface com.h3c.of.lib.Structure

      `getVersion`

- - ### Constructor Detail

    - #### MBodyPortDesc

          public MBodyPortDesc(ProtocolVersion pv)

      Constructs a multipart body PORT_DESC type.
      Parameters:
        `pv` - the protocol version

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `OpenflowStructure`

    - #### toDebugString

          public String toDebugString()

      Description copied from class: `OpenflowStructure`
      Returns a string representation useful for debugging. This default implementation delegates to `OpenflowStructure.toString()`, but subclasses are free to override this behavior.
      Specified by:
        `toDebugString` in interface `Structure`
      Overrides:
        `toDebugString` in class `OpenflowStructure`
      Returns:
        a (possibly multi-line) string representation of this message

    - #### toDebugString

          public String toDebugString(int indent)

      Returns a multi-line string representation of this structure, with the specified indentation.
      Parameters:
        `indent` - the number of spaces to indent
      Returns:
        the multi-line string representation

    - #### getTotalLength

          public int getTotalLength()

      Description copied from interface: `MultipartBody`
      Returns the total length of the body, in bytes.
      Specified by:
        `getTotalLength` in interface `MultipartBody`
      Returns:
        the total length of the body

    - #### getPort

          public Port getPort()

      Returns the list of ports; Since 1.3.
      Returns:
        the list of ports

Copyright © 2014. All Rights Reserved.