com.h3c.util.pkt

## Class Mpls

- java.lang.Object
- - com.h3c.util.pkt.Mpls

- All Implemented Interfaces:
    Protocol

      public class Mpls
      extends Object
      implements Protocol

  MPLS data store (immutable) and associated `Mpls.Builder` (mutable).

  Includes support for the following OpenFlow match fields:

  - MPLS label
  - MPLS TTL
  - MPLS Bottom of Label Stack bit

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Mpls.Builder` Builder (mutable) used to create new protocol instances.
    `static class` | `Mpls.Header` MPLS label switching header (immutable).

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Mpls.Header[]` | `headers()` Returns a copy of the headers array.
    `ProtocolId` | `id()` Returns the protocol ID.
    `String` | `toDebugString()` Returns the protocol debug string.
    `String` | `toString()`

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

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

- - ### Method Detail

    - #### id

          public ProtocolId id()

      Description copied from interface: `Protocol`
      Returns the protocol ID.
      Specified by:
        `id` in interface `Protocol`
      Returns:
        protocol ID

    - #### headers

          public Mpls.Header[] headers()

      Returns a copy of the headers array.
      Returns:
        the headers array

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toDebugString

          public String toDebugString()

      Description copied from interface: `Protocol`
      Returns the protocol debug string.
      Specified by:
        `toDebugString` in interface `Protocol`
      Returns:
        the protocol debug string

Copyright © 2014. All Rights Reserved.