java.lang.Object
org.cybergarage.upnp.device.NT
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 Summary
Constructor Summary
ConstructorsConstructorDescriptionNT()The NT constants and the matching test below are all static and the class holds no fields, so an instance carries nothing.Method Summary
All Methods
Field Details
ROOTDEVICE
EVENT
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
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