java.lang.Object
org.cybergarage.upnp.device.MAN
Utility class for SSDP MAN (Method Application Namespace) header values.
This class provides constants and utility methods for handling the MAN header used in SSDP M-SEARCH requests. The MAN header specifies the method application namespace for the discovery operation.
Key features:
- SSDP discover constant definition
- MAN header value validation
- Quoted and unquoted value support
- Null-safe value checking
This class is used by SSDP components to validate and process MAN headers in M-SEARCH requests, ensuring proper discovery protocol compliance.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionMAN()Constructs an instance; the class is a constant holder, so an instance carries no state beyond what the static DISCOVER token already holds.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic final booleanisDiscover(String value) Tests whether a MAN header value carries the SSDP discover token.
Field Details
DISCOVER
Token identifying the SSDP discovery namespace in a MAN header.- See Also:
Constructor Details
MAN
public MAN()Constructs an instance; the class is a constant holder, so an instance carries no state beyond what the static DISCOVER token already holds.
Method Details
isDiscover
Tests whether a MAN header value carries the SSDP discover token.- Parameters:
value- MAN header value, compared bare or wrapped in double quotes- Returns:
- true if the value carries the SSDP discover token