com.h3c.util.pkt

## Class Mpls.Header

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

- Enclosing class:
    Mpls

      public static class Mpls.Header
      extends Object

  MPLS label switching header (immutable).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Mpls.Header(int label, int ttl)` Constructor to create a new MPLS label switching header.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `label()` Returns the header label.
    `String` | `toString()`
    `int` | `ttl()` Returns the time to live in seconds.

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

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

- - ### Constructor Detail

    - #### Mpls.Header

          public Mpls.Header(int label,
                     int ttl)

      Constructor to create a new MPLS label switching header.
      Parameters:
        `label` - label number
        `ttl` - time to live in seconds

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### label

          public int label()

      Returns the header label.
      Returns:
        the label value

    - #### ttl

          public int ttl()

      Returns the time to live in seconds.
      Returns:
        the TTL in seconds

Copyright © 2014. All Rights Reserved.