public class ControlPoint extends Object implements HTTPRequestListener
This class implements HTTPRequestListener to provide comprehensive UPnP control point functionality including device discovery, service enumeration, action invocation, and event subscription management. It serves as the primary interface for UPnP control applications.
Key features:
This class is used by UPnP control applications to discover, control, and monitor UPnP devices on the network, providing a complete framework for building UPnP control point functionality.
| Modifier and Type | Field and Description |
|---|---|
(package private) ListenerList |
deviceChangeListenerList |
| Constructor and Description |
|---|
ControlPoint() |
ControlPoint(int ssdpPort,
int httpPort) |
ControlPoint(int ssdpPort,
int httpPort,
InetAddress[] binds) |
ListenerList deviceChangeListenerList
public ControlPoint()
public ControlPoint(int ssdpPort,
int httpPort)
public ControlPoint(int ssdpPort,
int httpPort,
InetAddress[] binds)
public void addDeviceChangeListener(DeviceChangeListener listener)
public void addEventListener(EventListener listener)
public void addNotifyListener(NotifyListener listener)
public void addSearchResponseListener(SearchResponseListener listener)
public Disposer getDeviceDisposer()
public DeviceList getDeviceList()
public String getEventSubURI()
public long getExpiredDeviceMonitoringInterval()
public int getHTTPPort()
protected HTTPServerList getHTTPServerList()
public RenewSubscriber getRenewSubscriber()
public int getSearchMx()
protected SSDPNotifySocketList getSSDPNotifySocketList()
public int getSSDPPort()
protected SSDPSearchResponseSocketList getSSDPSearchResponseSocketList()
public Object getUserData()
public boolean hasDevice(String name)
public void httpRequestRecieved(HTTPRequest httpReq)
HTTPRequestListenerhttpRequestRecieved in interface HTTPRequestListenerhttpReq - the received HTTP requestpublic boolean isNMPRMode()
public boolean isSubscribed(Service service)
public void lock()
public void notifyReceived(SSDPPacket packet)
public void performAddDeviceListener(Device dev)
public void performEventListener(String uuid, long seq, String name, String value)
public void performNotifyListener(SSDPPacket ssdpPacket)
public void performRemoveDeviceListener(Device dev)
public void performSearchResponseListener(SSDPPacket ssdpPacket)
public void print()
protected void removeDevice(Device dev)
protected void removeDevice(String name)
public void removeDeviceChangeListener(DeviceChangeListener listener)
public void removeEventListener(EventListener listener)
public void removeExpiredDevices()
public void removeNotifyListener(NotifyListener listener)
public void removeSearchResponseListener(SearchResponseListener listener)
public void renewSubscriberService()
public void renewSubscriberService(Device dev, long timeout)
public void renewSubscriberService(long timeout)
public void search()
public void search(String target)
public void search(String target, int mx)
public void searchResponseReceived(SSDPPacket packet)
public void setDeviceDisposer(Disposer disposer)
public void setEventSubURI(String url)
public void setExpiredDeviceMonitoringInterval(long interval)
public void setHTTPPort(int port)
public void setNMPRMode(boolean flag)
public void setRenewSubscriber(RenewSubscriber sub)
public void setSearchMx(int mx)
public void setSSDPPort(int port)
public void setUserData(Object data)
public boolean start()
public boolean start(String target)
public boolean start(String target, int mx)
public boolean stop()
public boolean subscribe(Service service)
public boolean subscribe(Service service, long timeout)
public void unlock()
public void unsubscribe()
public void unsubscribe(Device device)
public boolean unsubscribe(Service service)