Package org.cybergarage.upnp
Class ControlPoint
java.lang.Object
org.cybergarage.upnp.ControlPoint
- All Implemented Interfaces:
HTTPRequestListener
- Direct Known Subclasses:
UPnP
-
Field Summary
-
Constructor Summary
ConstructorDescriptionControlPoint
(int ssdpPort, int httpPort) ControlPoint
(int ssdpPort, int httpPort, InetAddress[] binds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeviceChangeListener
(DeviceChangeListener listener) void
addEventListener
(EventListener listener) void
addNotifyListener
(NotifyListener listener) void
void
finalize()
long
int
protected HTTPServerList
I2P was privateint
protected SSDPNotifySocketList
I2P was privateint
protected SSDPSearchResponseSocketList
I2P was privategetSubscriberService
(String uuid) boolean
void
httpRequestRecieved
(HTTPRequest httpReq) boolean
boolean
isSubscribed
(Service service) void
lock()
void
notifyReceived
(SSDPPacket packet) void
void
performEventListener
(String uuid, long seq, String name, String value) void
performNotifyListener
(SSDPPacket ssdpPacket) void
void
performSearchResponseListener
(SSDPPacket ssdpPacket) void
print()
protected void
removeDevice
(String name) protected void
removeDevice
(Device dev) void
void
removeEventListener
(EventListener listener) void
void
removeNotifyListener
(NotifyListener listener) void
void
void
renewSubscriberService
(long timeout) void
renewSubscriberService
(Device dev, long timeout) void
search()
void
void
void
searchResponseReceived
(SSDPPacket packet) void
setDeviceDisposer
(Disposer disposer) void
setEventSubURI
(String url) void
setExpiredDeviceMonitoringInterval
(long interval) void
setHTTPPort
(int port) void
setNMPRMode
(boolean flag) void
void
setSearchMx
(int mx) void
setSSDPPort
(int port) void
setUserData
(Object data) boolean
start()
boolean
boolean
boolean
stop()
boolean
boolean
boolean
boolean
void
unlock()
void
void
unsubscribe
(Device device) boolean
unsubscribe
(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:
httpRequestRecieved
in 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()
-