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

public class MANextends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Token identifying the SSDP discovery namespace in a MAN header.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    All Methods
    Modifier and Type
    Method
    Description
    static final boolean
    Tests whether a MAN header value carries the SSDP discover token.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DISCOVER

      public static final String 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

      public static final boolean isDiscover(String value)
      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