java.lang.Object
org.cybergarage.upnp.device.NTS
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 Summary
Constructor Summary
ConstructorsMethod Summary
All Methods
Field Details
ALIVE
BYEBYE
PROPCHANGE
Constructor Details
NTS
public NTS()default constructor
Method Details
isAlive
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
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