org.cybergarage.upnp.ssdp

## Class SSDPPacket

- java.lang.Object
- - org.cybergarage.upnp.ssdp.SSDPPacket

-     public class SSDPPacket
      extends Object

  Represents an SSDP packet received over UDP.

  This class wraps a DatagramPacket to provide SSDP-specific functionality for parsing and handling UDP packets containing SSDP messages. It provides access to both the raw packet data and parsed SSDP message content.

  Key features:

  - DatagramPacket wrapping and management
  - Remote and local address access
  - SSDP message parsing
  - Root device detection
  - Packet data extraction

  This class is used by SSDP components to handle incoming UDP packets containing discovery and advertisement messages, providing convenient access to both network information and message content.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `byte[]` | `packetBytes`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SSDPPacket(byte[] buf, int length)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getCacheControl()`
    `byte[]` | `getData()`
    `DatagramPacket` | `getDatagramPacket()`
    `String` | `getHost()`
    `InetAddress` | `getHostInetAddress()`
    `int` | `getLeaseTime()`
    `String` | `getLocalAddress()`
    `String` | `getLocation()`
    `String` | `getMAN()`
    `int` | `getMX()`
    `String` | `getNT()`
    `String` | `getNTS()`
    `String` | `getRemoteAddress()`
    `InetAddress` | `getRemoteInetAddress()`
    `int` | `getRemotePort()`
    `String` | `getServer()`
    `String` | `getST()`
    `long` | `getTimeStamp()`
    `String` | `getUSN()`
    `boolean` | `isAlive()`
    `boolean` | `isByeBye()`
    `boolean` | `isDiscover()`
    `boolean` | `isRootDevice()`
    `void` | `setLocalAddress(String addr)`
    `void` | `setTimeStamp(long value)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### packetBytes

          public byte[] packetBytes

  - ### Constructor Detail

    - #### SSDPPacket

          public SSDPPacket(byte[] buf,
                            int length)

  - ### Method Detail

    - #### getCacheControl

          public String getCacheControl()

    - #### getData

          public byte[] getData()

    - #### getDatagramPacket

          public DatagramPacket getDatagramPacket()

    - #### getHost

          public String getHost()

    - #### getHostInetAddress

          public InetAddress getHostInetAddress()

    - #### getLeaseTime

          public int getLeaseTime()

    - #### getLocalAddress

          public String getLocalAddress()

    - #### getLocation

          public String getLocation()

    - #### getMAN

          public String getMAN()

    - #### getMX

          public int getMX()

    - #### getNT

          public String getNT()

    - #### getNTS

          public String getNTS()

    - #### getRemoteAddress

          public String getRemoteAddress()

    - #### getRemoteInetAddress

          public InetAddress getRemoteInetAddress()

    - #### getRemotePort

          public int getRemotePort()

    - #### getServer

          public String getServer()

    - #### getST

          public String getST()

    - #### getTimeStamp

          public long getTimeStamp()

    - #### getUSN

          public String getUSN()

    - #### isAlive

          public boolean isAlive()

    - #### isByeBye

          public boolean isByeBye()

    - #### isDiscover

          public boolean isDiscover()

    - #### isRootDevice

          public boolean isRootDevice()

    - #### setLocalAddress

          public void setLocalAddress(String addr)

    - #### setTimeStamp

          public void setTimeStamp(long value)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`