java.lang.Object
org.cybergarage.upnp.device.NTS

public class NTSextends Object
Utility class for SSDP NTS (Notification Sub-Type) header values.

This class provides constants and utility methods for handling NTS header used in SSDP NOTIFY messages. The NTS header specifies the sub-type of notification being sent.

Key features:

  • SSDP notification type constants
  • Alive notification detection
  • Bye-bye notification detection
  • Property change notification support
  • Null-safe value checking

This class is used by SSDP components to classify and process notification messages, enabling proper handling of device presence announcements and departure notifications.

  • Field Details

  • Constructor Details

    • NTS

      public NTS()
      default constructor
  • Method Details

    • isAlive

      public static final boolean isAlive(String ntsValue)
      Test whether an NTS header names an ssdp:alive notification.
      Parameters:
      ntsValue - the NTS value to check
      Returns:
      true if the value is non-null and begins with the "ssdp:alive" prefix
    • isByeBye

      public static final boolean isByeBye(String ntsValue)
      Test whether an NTS header names an ssdp:byebye notification.
      Parameters:
      ntsValue - the NTS value to check
      Returns:
      true if the value is non-null and begins with the "ssdp:byebye" prefix