cybergarage-upnp
org.cybergarage.upnp.ControlPoint Class Reference
Inheritance diagram for org.cybergarage.upnp.ControlPoint:
org.cybergarage.http.HTTPRequestListener org.cybergarage.upnp.std.av.controller.MediaController

Public Member Functions

 ControlPoint (int ssdpPort, int httpPort, InetAddress[] binds)
 
 ControlPoint (int ssdpPort, int httpPort)
 
 ControlPoint ()
 
void finalize ()
 
void lock ()
 
void unlock ()
 
int getSSDPPort ()
 
void setSSDPPort (int port)
 
int getHTTPPort ()
 
void setHTTPPort (int port)
 
void setNMPRMode (boolean flag)
 
boolean isNMPRMode ()
 
DeviceList getDeviceList ()
 
Device getDevice (String name)
 
boolean hasDevice (String name)
 
void removeExpiredDevices ()
 
void setExpiredDeviceMonitoringInterval (long interval)
 
long getExpiredDeviceMonitoringInterval ()
 
void setDeviceDisposer (Disposer disposer)
 
Disposer getDeviceDisposer ()
 
void addNotifyListener (NotifyListener listener)
 
void removeNotifyListener (NotifyListener listener)
 
void performNotifyListener (SSDPPacket ssdpPacket)
 
void addSearchResponseListener (SearchResponseListener listener)
 
void removeSearchResponseListener (SearchResponseListener listener)
 
void performSearchResponseListener (SSDPPacket ssdpPacket)
 
void addDeviceChangeListener (DeviceChangeListener listener)
 
void removeDeviceChangeListener (DeviceChangeListener listener)
 
void performAddDeviceListener (Device dev)
 
void performRemoveDeviceListener (Device dev)
 
void notifyReceived (SSDPPacket packet)
 
void searchResponseReceived (SSDPPacket packet)
 
int getSearchMx ()
 
void setSearchMx (int mx)
 
void search (String target, int mx)
 
void search (String target)
 
void search ()
 
void httpRequestRecieved (HTTPRequest httpReq)
 
void addEventListener (EventListener listener)
 
void removeEventListener (EventListener listener)
 
void performEventListener (String uuid, long seq, String name, String value)
 
String getEventSubURI ()
 
void setEventSubURI (String url)
 
boolean subscribe (Service service, long timeout)
 
boolean subscribe (Service service)
 
boolean subscribe (Service service, String uuid, long timeout)
 
boolean subscribe (Service service, String uuid)
 
boolean isSubscribed (Service service)
 
boolean unsubscribe (Service service)
 
void unsubscribe (Device device)
 
void unsubscribe ()
 
Service getSubscriberService (String uuid)
 
void renewSubscriberService (Device dev, long timeout)
 
void renewSubscriberService (long timeout)
 
void renewSubscriberService ()
 
void setRenewSubscriber (RenewSubscriber sub)
 
RenewSubscriber getRenewSubscriber ()
 
boolean start (String target, int mx)
 
boolean start (String target)
 
boolean start ()
 
boolean stop ()
 
void setUserData (Object data)
 
Object getUserData ()
 
void print ()
 

Protected Member Functions

void removeDevice (Device dev)
 
void removeDevice (String name)
 

Private Member Functions

SSDPNotifySocketList getSSDPNotifySocketList ()
 
SSDPSearchResponseSocketList getSSDPSearchResponseSocketList ()
 
void addDevice (Node rootNode)
 
synchronized void addDevice (SSDPPacket ssdpPacket)
 
Device getDevice (Node rootNode)
 
void removeDevice (Node rootNode)
 
void removeDevice (SSDPPacket packet)
 
HTTPServerList getHTTPServerList ()
 
String getEventSubCallbackURL (String host)
 

Private Attributes

SSDPNotifySocketList ssdpNotifySocketList
 
SSDPSearchResponseSocketList ssdpSearchResponseSocketList
 
Mutex mutex = new Mutex()
 
int ssdpPort = 0
 
int httpPort = 0
 
boolean nmprMode
 
final NodeList devNodeList = new NodeList()
 
final ReentrantReadWriteLock devNodeListLock = new ReentrantReadWriteLock()
 
Disposer deviceDisposer
 
long expiredDeviceMonitoringInterval
 
ListenerList deviceNotifyListenerList = new ListenerList()
 
ListenerList deviceSearchResponseListenerList = new ListenerList()
 
int searchMx = SSDP.DEFAULT_MSEARCH_MX
 
HTTPServerList httpServerList = new HTTPServerList()
 
ListenerList eventListenerList = new ListenerList()
 
String eventSubURI = DEFAULT_EVENTSUB_URI
 
RenewSubscriber renewSubscriber
 
Object userData = null
 

Static Private Attributes

static final int DEFAULT_EVENTSUB_PORT = 8058
 
static final int DEFAULT_SSDP_PORT = 8008
 
static final int DEFAULT_EXPIRED_DEVICE_MONITORING_INTERVAL = 60
 
static final String DEFAULT_EVENTSUB_URI = "/evetSub"
 

Constructor & Destructor Documentation

◆ ControlPoint() [1/3]

org.cybergarage.upnp.ControlPoint.ControlPoint ( int ssdpPort,
int httpPort,
InetAddress[] binds )
inline

◆ ControlPoint() [2/3]

org.cybergarage.upnp.ControlPoint.ControlPoint ( int ssdpPort,
int httpPort )
inline

◆ ControlPoint() [3/3]

org.cybergarage.upnp.ControlPoint.ControlPoint ( )
inline

Member Function Documentation

◆ addDevice() [1/2]

void org.cybergarage.upnp.ControlPoint.addDevice ( Node rootNode)
inlineprivate

◆ addDevice() [2/2]

synchronized void org.cybergarage.upnp.ControlPoint.addDevice ( SSDPPacket ssdpPacket)
inlineprivate

◆ addDeviceChangeListener()

void org.cybergarage.upnp.ControlPoint.addDeviceChangeListener ( DeviceChangeListener listener)
inline

◆ addEventListener()

void org.cybergarage.upnp.ControlPoint.addEventListener ( EventListener listener)
inline

◆ addNotifyListener()

void org.cybergarage.upnp.ControlPoint.addNotifyListener ( NotifyListener listener)
inline

◆ addSearchResponseListener()

void org.cybergarage.upnp.ControlPoint.addSearchResponseListener ( SearchResponseListener listener)
inline

◆ finalize()

void org.cybergarage.upnp.ControlPoint.finalize ( )
inline

◆ getDevice() [1/2]

Device org.cybergarage.upnp.ControlPoint.getDevice ( Node rootNode)
inlineprivate

◆ getDevice() [2/2]

Device org.cybergarage.upnp.ControlPoint.getDevice ( String name)
inline

◆ getDeviceDisposer()

Disposer org.cybergarage.upnp.ControlPoint.getDeviceDisposer ( )
inline

◆ getDeviceList()

DeviceList org.cybergarage.upnp.ControlPoint.getDeviceList ( )
inline

◆ getEventSubCallbackURL()

String org.cybergarage.upnp.ControlPoint.getEventSubCallbackURL ( String host)
inlineprivate

◆ getEventSubURI()

String org.cybergarage.upnp.ControlPoint.getEventSubURI ( )
inline

◆ getExpiredDeviceMonitoringInterval()

long org.cybergarage.upnp.ControlPoint.getExpiredDeviceMonitoringInterval ( )
inline

◆ getHTTPPort()

int org.cybergarage.upnp.ControlPoint.getHTTPPort ( )
inline

◆ getHTTPServerList()

HTTPServerList org.cybergarage.upnp.ControlPoint.getHTTPServerList ( )
inlineprivate

◆ getRenewSubscriber()

RenewSubscriber org.cybergarage.upnp.ControlPoint.getRenewSubscriber ( )
inline

◆ getSearchMx()

int org.cybergarage.upnp.ControlPoint.getSearchMx ( )
inline

◆ getSSDPNotifySocketList()

SSDPNotifySocketList org.cybergarage.upnp.ControlPoint.getSSDPNotifySocketList ( )
inlineprivate

◆ getSSDPPort()

int org.cybergarage.upnp.ControlPoint.getSSDPPort ( )
inline

◆ getSSDPSearchResponseSocketList()

SSDPSearchResponseSocketList org.cybergarage.upnp.ControlPoint.getSSDPSearchResponseSocketList ( )
inlineprivate

◆ getSubscriberService()

Service org.cybergarage.upnp.ControlPoint.getSubscriberService ( String uuid)
inline

◆ getUserData()

Object org.cybergarage.upnp.ControlPoint.getUserData ( )
inline

◆ hasDevice()

boolean org.cybergarage.upnp.ControlPoint.hasDevice ( String name)
inline

◆ httpRequestRecieved()

void org.cybergarage.upnp.ControlPoint.httpRequestRecieved ( HTTPRequest httpReq)
inline

◆ isNMPRMode()

boolean org.cybergarage.upnp.ControlPoint.isNMPRMode ( )
inline

◆ isSubscribed()

boolean org.cybergarage.upnp.ControlPoint.isSubscribed ( Service service)
inline

◆ lock()

void org.cybergarage.upnp.ControlPoint.lock ( )
inline

◆ notifyReceived()

void org.cybergarage.upnp.ControlPoint.notifyReceived ( SSDPPacket packet)
inline

◆ performAddDeviceListener()

void org.cybergarage.upnp.ControlPoint.performAddDeviceListener ( Device dev)
inline

◆ performEventListener()

void org.cybergarage.upnp.ControlPoint.performEventListener ( String uuid,
long seq,
String name,
String value )
inline

◆ performNotifyListener()

void org.cybergarage.upnp.ControlPoint.performNotifyListener ( SSDPPacket ssdpPacket)
inline

◆ performRemoveDeviceListener()

void org.cybergarage.upnp.ControlPoint.performRemoveDeviceListener ( Device dev)
inline

◆ performSearchResponseListener()

void org.cybergarage.upnp.ControlPoint.performSearchResponseListener ( SSDPPacket ssdpPacket)
inline

◆ print()

void org.cybergarage.upnp.ControlPoint.print ( )
inline

◆ removeDevice() [1/4]

void org.cybergarage.upnp.ControlPoint.removeDevice ( Device dev)
inlineprotected

◆ removeDevice() [2/4]

void org.cybergarage.upnp.ControlPoint.removeDevice ( Node rootNode)
inlineprivate

◆ removeDevice() [3/4]

void org.cybergarage.upnp.ControlPoint.removeDevice ( SSDPPacket packet)
inlineprivate

◆ removeDevice() [4/4]

void org.cybergarage.upnp.ControlPoint.removeDevice ( String name)
inlineprotected

◆ removeDeviceChangeListener()

void org.cybergarage.upnp.ControlPoint.removeDeviceChangeListener ( DeviceChangeListener listener)
inline

◆ removeEventListener()

void org.cybergarage.upnp.ControlPoint.removeEventListener ( EventListener listener)
inline

◆ removeExpiredDevices()

void org.cybergarage.upnp.ControlPoint.removeExpiredDevices ( )
inline

◆ removeNotifyListener()

void org.cybergarage.upnp.ControlPoint.removeNotifyListener ( NotifyListener listener)
inline

◆ removeSearchResponseListener()

void org.cybergarage.upnp.ControlPoint.removeSearchResponseListener ( SearchResponseListener listener)
inline

◆ renewSubscriberService() [1/3]

void org.cybergarage.upnp.ControlPoint.renewSubscriberService ( )
inline

◆ renewSubscriberService() [2/3]

void org.cybergarage.upnp.ControlPoint.renewSubscriberService ( Device dev,
long timeout )
inline

◆ renewSubscriberService() [3/3]

void org.cybergarage.upnp.ControlPoint.renewSubscriberService ( long timeout)
inline

◆ search() [1/3]

void org.cybergarage.upnp.ControlPoint.search ( )
inline

◆ search() [2/3]

void org.cybergarage.upnp.ControlPoint.search ( String target)
inline

◆ search() [3/3]

void org.cybergarage.upnp.ControlPoint.search ( String target,
int mx )
inline

◆ searchResponseReceived()

void org.cybergarage.upnp.ControlPoint.searchResponseReceived ( SSDPPacket packet)
inline

◆ setDeviceDisposer()

void org.cybergarage.upnp.ControlPoint.setDeviceDisposer ( Disposer disposer)
inline

◆ setEventSubURI()

void org.cybergarage.upnp.ControlPoint.setEventSubURI ( String url)
inline

◆ setExpiredDeviceMonitoringInterval()

void org.cybergarage.upnp.ControlPoint.setExpiredDeviceMonitoringInterval ( long interval)
inline

◆ setHTTPPort()

void org.cybergarage.upnp.ControlPoint.setHTTPPort ( int port)
inline

◆ setNMPRMode()

void org.cybergarage.upnp.ControlPoint.setNMPRMode ( boolean flag)
inline

◆ setRenewSubscriber()

void org.cybergarage.upnp.ControlPoint.setRenewSubscriber ( RenewSubscriber sub)
inline

◆ setSearchMx()

void org.cybergarage.upnp.ControlPoint.setSearchMx ( int mx)
inline

◆ setSSDPPort()

void org.cybergarage.upnp.ControlPoint.setSSDPPort ( int port)
inline

◆ setUserData()

void org.cybergarage.upnp.ControlPoint.setUserData ( Object data)
inline

◆ start() [1/3]

boolean org.cybergarage.upnp.ControlPoint.start ( )
inline

◆ start() [2/3]

boolean org.cybergarage.upnp.ControlPoint.start ( String target)
inline

◆ start() [3/3]

boolean org.cybergarage.upnp.ControlPoint.start ( String target,
int mx )
inline

◆ stop()

boolean org.cybergarage.upnp.ControlPoint.stop ( )
inline

◆ subscribe() [1/4]

boolean org.cybergarage.upnp.ControlPoint.subscribe ( Service service)
inline

◆ subscribe() [2/4]

boolean org.cybergarage.upnp.ControlPoint.subscribe ( Service service,
long timeout )
inline

◆ subscribe() [3/4]

boolean org.cybergarage.upnp.ControlPoint.subscribe ( Service service,
String uuid )
inline

◆ subscribe() [4/4]

boolean org.cybergarage.upnp.ControlPoint.subscribe ( Service service,
String uuid,
long timeout )
inline

◆ unlock()

void org.cybergarage.upnp.ControlPoint.unlock ( )
inline

◆ unsubscribe() [1/3]

void org.cybergarage.upnp.ControlPoint.unsubscribe ( )
inline

◆ unsubscribe() [2/3]

void org.cybergarage.upnp.ControlPoint.unsubscribe ( Device device)
inline

◆ unsubscribe() [3/3]

boolean org.cybergarage.upnp.ControlPoint.unsubscribe ( Service service)
inline

Field Documentation

◆ DEFAULT_EVENTSUB_PORT

final int org.cybergarage.upnp.ControlPoint.DEFAULT_EVENTSUB_PORT = 8058
staticprivate

◆ DEFAULT_EVENTSUB_URI

final String org.cybergarage.upnp.ControlPoint.DEFAULT_EVENTSUB_URI = "/evetSub"
staticprivate

◆ DEFAULT_EXPIRED_DEVICE_MONITORING_INTERVAL

final int org.cybergarage.upnp.ControlPoint.DEFAULT_EXPIRED_DEVICE_MONITORING_INTERVAL = 60
staticprivate

◆ DEFAULT_SSDP_PORT

final int org.cybergarage.upnp.ControlPoint.DEFAULT_SSDP_PORT = 8008
staticprivate

◆ deviceDisposer

Disposer org.cybergarage.upnp.ControlPoint.deviceDisposer
private

◆ deviceNotifyListenerList

ListenerList org.cybergarage.upnp.ControlPoint.deviceNotifyListenerList = new ListenerList()
private

◆ deviceSearchResponseListenerList

ListenerList org.cybergarage.upnp.ControlPoint.deviceSearchResponseListenerList = new ListenerList()
private

◆ devNodeList

final NodeList org.cybergarage.upnp.ControlPoint.devNodeList = new NodeList()
private

◆ devNodeListLock

final ReentrantReadWriteLock org.cybergarage.upnp.ControlPoint.devNodeListLock = new ReentrantReadWriteLock()
private

◆ eventListenerList

ListenerList org.cybergarage.upnp.ControlPoint.eventListenerList = new ListenerList()
private

◆ eventSubURI

String org.cybergarage.upnp.ControlPoint.eventSubURI = DEFAULT_EVENTSUB_URI
private

◆ expiredDeviceMonitoringInterval

long org.cybergarage.upnp.ControlPoint.expiredDeviceMonitoringInterval
private

◆ httpPort

int org.cybergarage.upnp.ControlPoint.httpPort = 0
private

◆ httpServerList

HTTPServerList org.cybergarage.upnp.ControlPoint.httpServerList = new HTTPServerList()
private

◆ mutex

Mutex org.cybergarage.upnp.ControlPoint.mutex = new Mutex()
private

◆ nmprMode

boolean org.cybergarage.upnp.ControlPoint.nmprMode
private

◆ renewSubscriber

RenewSubscriber org.cybergarage.upnp.ControlPoint.renewSubscriber
private

◆ searchMx

int org.cybergarage.upnp.ControlPoint.searchMx = SSDP.DEFAULT_MSEARCH_MX
private

◆ ssdpNotifySocketList

SSDPNotifySocketList org.cybergarage.upnp.ControlPoint.ssdpNotifySocketList
private

◆ ssdpPort

int org.cybergarage.upnp.ControlPoint.ssdpPort = 0
private

◆ ssdpSearchResponseSocketList

SSDPSearchResponseSocketList org.cybergarage.upnp.ControlPoint.ssdpSearchResponseSocketList
private

◆ userData

Object org.cybergarage.upnp.ControlPoint.userData = null
private

The documentation for this class was generated from the following file: