upnp.controlpoint.core
Class BrisaControlPoint

java.lang.Object
  extended by upnp.event.BrisaControlPointEventManager
      extended by upnp.controlpoint.core.BrisaControlPoint
All Implemented Interfaces:
java.util.Observer

public class BrisaControlPoint
extends BrisaControlPointEventManager
implements java.util.Observer

Class that implements the BRisa Control Point.

Author:
Thiago Ribeiro, Wendell Silva

Constructor Summary
BrisaControlPoint()
           
 
Method Summary
 void discover()
           
 void discover(java.lang.String searchType)
           
 java.util.ArrayList<BrisaCPDevice> getArrayDevices()
           
 java.lang.String getIpAddress()
           
 BrisaMulticastEventReceiver getMulticastReceiver()
           
 int getPort()
           
 BrisaEventProxy getSubscriptionProxy(BrisaCPService service)
          Gets an event proxy to subscribe, usubscribe or renew the events from a service.
 java.lang.String getUrlBase()
           
 java.lang.Boolean isRunning()
           
 void printDevices()
          Method used to print in console all the current devices in the BRisa devices's list;
 void removeDeviceFromByeInSSDPClient(java.lang.String byebyeMessage)
           
 void start()
           
 void stop()
           
 void subscribeMulticastEvents()
           
 void unsubscribeMulticastEvents()
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class upnp.event.BrisaControlPointEventManager
addListener, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrisaControlPoint

public BrisaControlPoint()
Method Detail

getPort

public int getPort()
Returns:

getIpAddress

public java.lang.String getIpAddress()
Returns:

getUrlBase

public java.lang.String getUrlBase()
Returns:

start

public void start()

discover

public void discover()

discover

public void discover(java.lang.String searchType)
Parameters:
searchType -

stop

public void stop()

isRunning

public java.lang.Boolean isRunning()
Returns:

getArrayDevices

public java.util.ArrayList<BrisaCPDevice> getArrayDevices()
Returns:

getMulticastReceiver

public BrisaMulticastEventReceiver getMulticastReceiver()
Returns:

subscribeMulticastEvents

public void subscribeMulticastEvents()

unsubscribeMulticastEvents

public void unsubscribeMulticastEvents()

printDevices

public void printDevices()
Method used to print in console all the current devices in the BRisa devices's list;


getSubscriptionProxy

public BrisaEventProxy getSubscriptionProxy(BrisaCPService service)
Gets an event proxy to subscribe, usubscribe or renew the events from a service.

Returns:

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

removeDeviceFromByeInSSDPClient

public void removeDeviceFromByeInSSDPClient(java.lang.String byebyeMessage)