All Implemented Interfaces:
CharSequence, Comparable<DnsLabel>

public final class UnderscoreLabelextends NonLdhLabel
A DNS label which begins with an underscore ('_').
  • Constructor Details

    • UnderscoreLabel

      UnderscoreLabel(String label)
      Create label
      Parameters:
      label - the label text, which must start with an underscore
  • Method Details

    • isUnderscoreLabelInternal

      static boolean isUnderscoreLabelInternal(String label)
      Test for the DNS label form service records use (for example _tcp, _sip and _xmpp-client), which is any label whose first character is an underscore.
      Parameters:
      label - the label to test
      Returns:
      true if label starts with underscore