net.sbbi.upnp.samples
Class MyDiscoveryEventsHandler

java.lang.Object
  extended bynet.sbbi.upnp.samples.MyDiscoveryEventsHandler
All Implemented Interfaces:
DiscoveryEventHandler

public class MyDiscoveryEventsHandler
extends java.lang.Object
implements DiscoveryEventHandler


Constructor Summary
MyDiscoveryEventsHandler()
           
 
Method Summary
 void eventSSDPAlive(java.lang.String usn, java.lang.String udn, java.lang.String nt, java.lang.String maxAge, java.net.URL location)
          Called when a device joins the network or advertise it is still alive
 void eventSSDPByeBye(java.lang.String usn, java.lang.String udn, java.lang.String nt)
          Called when a device is leaving the network
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyDiscoveryEventsHandler

public MyDiscoveryEventsHandler()
Method Detail

eventSSDPAlive

public void eventSSDPAlive(java.lang.String usn,
                           java.lang.String udn,
                           java.lang.String nt,
                           java.lang.String maxAge,
                           java.net.URL location)
Description copied from interface: DiscoveryEventHandler
Called when a device joins the network or advertise it is still alive

Specified by:
eventSSDPAlive in interface DiscoveryEventHandler
Parameters:
usn - the device USN (udn::nt)
udn - the device UDN
nt - the device NT
maxAge - the device maxAge
location - the device location

eventSSDPByeBye

public void eventSSDPByeBye(java.lang.String usn,
                            java.lang.String udn,
                            java.lang.String nt)
Description copied from interface: DiscoveryEventHandler
Called when a device is leaving the network

Specified by:
eventSSDPByeBye in interface DiscoveryEventHandler
Parameters:
usn - the device USN (udn::nt)
udn - the device UDN
nt - the device NT

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005 SuperBonBon Industries. All Rights Reserved.