public class

SSDPMessage

extends Object
java.lang.Object
   ↳ org.ocast.discovery.SSDPMessage

Class Overview

A basic class to build/parse SSDP messages Only M-SEARCH methods and location response are usefull for Dial

Summary

Nested Classes
enum SSDPMessage.Type Type is inferred by the HTTP discover line / status line  
Constants
String SSDP_MAX_WAIT_TIME
Public Constructors
SSDPMessage(SSDPMessage.Type type)
Public Methods
SSDPMessage.Type getType()
Get SSDP message type
String getUuid()
Retrieve and parse the urn provided in the USN header eg: if header is "uuid:c4323fee-db4b-4227-9039-fa4b71589e26::" the return value will be "c4323fee-db4b-4227-9039-fa4b71589e26"
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String SSDP_MAX_WAIT_TIME

Constant Value: "10"

Public Constructors

public SSDPMessage (SSDPMessage.Type type)

Public Methods

public SSDPMessage.Type getType ()

Get SSDP message type

Returns
  • the Type of the message

public String getUuid ()

Retrieve and parse the urn provided in the USN header eg: if header is "uuid:c4323fee-db4b-4227-9039-fa4b71589e26::" the return value will be "c4323fee-db4b-4227-9039-fa4b71589e26"

Returns
  • a unique id

public String toString ()