All Implemented Interfaces:
CharSequence, Comparable<DnsLabel>

public final class NonReservedLdhLabelextends LdhLabel
A Non-Reserved LDH label (NR-LDH label), which do not have "--" in the third and fourth position.
  • Constructor Details

    • NonReservedLdhLabel

      NonReservedLdhLabel(String label)
      Create label
      Parameters:
      label - the LDH label text to wrap, already checked against the non-reserved position rules
  • Method Details

    • isNonReservedLdhLabel

      public static boolean isNonReservedLdhLabel(String label)
      Tests whether the label is a valid LDH label that is not on the reserved list.
      Parameters:
      label - the LDH label text to test
      Returns:
      true if label is non-reserved
    • isNonReservedLdhLabelInternal

      static boolean isNonReservedLdhLabelInternal(String label)
      Does this text satisfy the non-reserved rule, having already been checked as an LDH label?
      Parameters:
      label - the already-validated LDH label text to test
      Returns:
      true if label is non-reserved