Package org.cybergarage.upnp
Class ControlPoint
java.lang.Object
org.cybergarage.upnp.ControlPoint
- All Implemented Interfaces:
HTTPRequestListener
- Direct Known Subclasses:
UPnP
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControlPoint(int ssdpPort, int httpPort) ControlPoint(int ssdpPort, int httpPort, InetAddress[] binds) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeviceChangeListener(DeviceChangeListener listener) voidaddEventListener(EventListener listener) voidaddNotifyListener(NotifyListener listener) voidvoidfinalize()longintprotected HTTPServerListI2P was privateintprotected SSDPNotifySocketListI2P was privateintprotected SSDPSearchResponseSocketListI2P was privategetSubscriberService(String uuid) booleanvoidhttpRequestRecieved(HTTPRequest httpReq) booleanbooleanisSubscribed(Service service) voidlock()voidnotifyReceived(SSDPPacket packet) voidvoidperformEventListener(String uuid, long seq, String name, String value) voidperformNotifyListener(SSDPPacket ssdpPacket) voidvoidperformSearchResponseListener(SSDPPacket ssdpPacket) voidprint()protected voidremoveDevice(String name) protected voidremoveDevice(Device dev) voidvoidremoveEventListener(EventListener listener) voidvoidremoveNotifyListener(NotifyListener listener) voidvoidvoidrenewSubscriberService(long timeout) voidrenewSubscriberService(Device dev, long timeout) voidsearch()voidvoidvoidsearchResponseReceived(SSDPPacket packet) voidsetDeviceDisposer(Disposer disposer) voidsetEventSubURI(String url) voidsetExpiredDeviceMonitoringInterval(long interval) voidsetHTTPPort(int port) voidsetNMPRMode(boolean flag) voidvoidsetSearchMx(int mx) voidsetSSDPPort(int port) voidsetUserData(Object data) booleanstart()booleanbooleanbooleanstop()booleanbooleanbooleanbooleanvoidunlock()voidvoidunsubscribe(Device device) booleanunsubscribe(Service service)
-
Field Details
-
deviceChangeListenerList
ListenerList deviceChangeListenerList
-
-
Constructor Details
-
ControlPoint
-
ControlPoint
public ControlPoint(int ssdpPort, int httpPort) -
ControlPoint
public ControlPoint()
-
-
Method Details
-
getSSDPNotifySocketList
I2P was private -
getSSDPSearchResponseSocketList
I2P was private -
finalize
public void finalize() -
lock
public void lock() -
unlock
public void unlock() -
getSSDPPort
public int getSSDPPort() -
setSSDPPort
public void setSSDPPort(int port) -
getHTTPPort
public int getHTTPPort() -
setHTTPPort
public void setHTTPPort(int port) -
setNMPRMode
public void setNMPRMode(boolean flag) -
isNMPRMode
public boolean isNMPRMode() -
getDeviceList
-
getDevice
-
hasDevice
-
removeDevice
-
removeDevice
-
removeExpiredDevices
public void removeExpiredDevices() -
setExpiredDeviceMonitoringInterval
public void setExpiredDeviceMonitoringInterval(long interval) -
getExpiredDeviceMonitoringInterval
public long getExpiredDeviceMonitoringInterval() -
setDeviceDisposer
-
getDeviceDisposer
-
addNotifyListener
-
removeNotifyListener
-
performNotifyListener
-
addSearchResponseListener
-
removeSearchResponseListener
-
performSearchResponseListener
-
addDeviceChangeListener
-
removeDeviceChangeListener
-
performAddDeviceListener
-
performRemoveDeviceListener
-
notifyReceived
-
searchResponseReceived
-
getSearchMx
public int getSearchMx() -
setSearchMx
public void setSearchMx(int mx) -
search
-
search
-
search
public void search() -
getHTTPServerList
I2P was private -
httpRequestRecieved
- Specified by:
httpRequestRecievedin interfaceHTTPRequestListener
-
addEventListener
-
removeEventListener
-
performEventListener
-
getEventSubURI
-
setEventSubURI
-
subscribe
-
subscribe
-
subscribe
-
subscribe
-
isSubscribed
-
unsubscribe
-
unsubscribe
-
unsubscribe
public void unsubscribe() -
getSubscriberService
-
renewSubscriberService
-
renewSubscriberService
public void renewSubscriberService(long timeout) -
renewSubscriberService
public void renewSubscriberService() -
setRenewSubscriber
-
getRenewSubscriber
-
start
-
start
-
start
public boolean start() -
stop
public boolean stop() -
setUserData
-
getUserData
-
print
public void print()
-