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

public class NTextends Object
Utility class for SSDP NT (Notification Type) header values and validation.

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

Key features:

  • Notification type constants
  • Root device notification support
  • Event notification type handling
  • Notification type validation
  • Null-safe value checking

This class is used by SSDP components to validate and process NT headers in notification messages, enabling proper classification of device advertisements and event notifications.

  • Field Details

  • Constructor Details

    • NT

      public NT()
      The NT constants and the matching test below are all static and the class holds no fields, so an instance carries nothing.
  • Method Details

    • isRootDevice

      public static final boolean isRootDevice(String ntValue)
      method comment
      Parameters:
      ntValue - the NT header value to test, may be null
      Returns:
      true if ntValue is non-null and begins with upnp:rootdevice, false otherwise, including for a null value