Package net.sbbi.upnp.samples
Class MyDiscoveryEventsHandler
- java.lang.Object
-
- net.sbbi.upnp.samples.MyDiscoveryEventsHandler
-
- All Implemented Interfaces:
DiscoveryEventHandler
public class MyDiscoveryEventsHandler extends Object implements DiscoveryEventHandler
-
-
Constructor Summary
Constructors Constructor Description MyDiscoveryEventsHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voideventSSDPAlive(String usn, String udn, String nt, String maxAge, URL location)Called when a device joins the network or advertise it is still alivevoideventSSDPByeBye(String usn, String udn, String nt)Called when a device is leaving the networkstatic voidmain(String[] args)
-
-
-
Method Detail
-
eventSSDPAlive
public void eventSSDPAlive(String usn, String udn, String nt, String maxAge, URL location)
Description copied from interface:DiscoveryEventHandlerCalled when a device joins the network or advertise it is still alive- Specified by:
eventSSDPAlivein interfaceDiscoveryEventHandler- Parameters:
usn- the device USN (udn::nt)udn- the device UDNnt- the device NTmaxAge- the device maxAgelocation- the device location
-
eventSSDPByeBye
public void eventSSDPByeBye(String usn, String udn, String nt)
Description copied from interface:DiscoveryEventHandlerCalled when a device is leaving the network- Specified by:
eventSSDPByeByein interfaceDiscoveryEventHandler- Parameters:
usn- the device USN (udn::nt)udn- the device UDNnt- the device NT
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-