Class UPnPImpl
java.lang.Object
com.biglybt.pif.utils.resourcedownloader.ResourceDownloaderAdapter
com.biglybt.net.upnp.impl.UPnPImpl
- All Implemented Interfaces:
SSDPIGDListener, UPnP, ResourceDownloaderListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UPnPAdapterprivate AsyncDispatcherprivate static AEMonitorprivate ThreadPool<AERunnable> private Setprivate intprivate intprivate Listprivate Listprivate Liststatic final Stringprivate CopyOnWriteList<UPnPListener> private AEMonitorprivate Map<String, UPnPRootDeviceImpl> private static UPnPImplprivate final SSDPIGDprotected AEMonitorprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUPnPImpl(UPnPAdapter _adapter, String[] _selected_interfaces) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddeviceStatusUpdate(InetAddress address, boolean alive) downloadXML(UPnPDeviceImpl device, URL url) downloadXML(UPnPRootDeviceImpl root, URL url) protected SimpleXMLParserDocumentdownloadXMLSupport(String friendly_name, URL url) voidfailed(ResourceDownloader downloader, ResourceDownloaderException e) protected booleanstatic UPnPgetSingleton(UPnPAdapter adapter, String[] selected_interfaces) protected FilevoidinterfaceChanged(NetworkInterface network_interface) voidLogs a message to all registered log listenersvoidvoidparseXML(InputStream _is) performSOAPRequest(UPnPService service, String soap_action, String request, boolean use_http_connection, InetAddress bind) The use_http_connection flag is set to false sometimes to avoid using the URLConnection library for some dopey UPnP routers.performSOAPRequest(UPnPService service, String soap_action, String request, InetAddress bind) voidvoidvoidreportActivity(ResourceDownloader downloader, String activity) voidreset()resets by removing all root devices and then rediscovering themvoidvoidrootDiscovered(NetworkInterface network_interface, InetAddress local_address, String usn, URL location) voidrootLost(InetAddress local_address, String usn) voidsearch()scan for newvoidMethods inherited from class ResourceDownloaderAdapter
completed, reportAmountComplete, reportPercentComplete
-
Field Details
-
NL
- See Also:
-
singleton
-
class_mon
-
adapter
-
ssdp_igd
-
root_locations
-
log_listeners
-
log_history
-
log_alert_history
-
rd_listeners
-
rd_listeners_mon
-
http_calls_ok
private int http_calls_ok -
direct_calls_ok
private int direct_calls_ok -
trace_index
private int trace_index -
async_dispatcher
-
device_dispatcher
-
device_dispatcher_pending
-
failed_urls
-
this_mon
-
-
Constructor Details
-
UPnPImpl
- Throws:
UPnPException
-
-
Method Details
-
getSingleton
public static UPnP getSingleton(UPnPAdapter adapter, String[] selected_interfaces) throws UPnPException - Throws:
UPnPException
-
rootDiscovered
public void rootDiscovered(NetworkInterface network_interface, InetAddress local_address, String usn, URL location) - Specified by:
rootDiscoveredin interfaceSSDPIGDListener
-
rootAlive
- Specified by:
rootAlivein interfaceSSDPIGDListener
-
rootLost
- Specified by:
rootLostin interfaceSSDPIGDListener
-
deviceStatusUpdate
- Specified by:
deviceStatusUpdatein interfaceSSDPIGDListener
-
interfaceChanged
- Specified by:
interfaceChangedin interfaceSSDPIGDListener
-
search
-
search
-
reset
-
parseXML
public SimpleXMLParserDocument parseXML(InputStream _is) throws SimpleXMLParserDocumentException, IOException -
downloadXML
- Throws:
UPnPException
-
downloadXML
- Throws:
UPnPException
-
downloadXMLSupport
protected SimpleXMLParserDocument downloadXMLSupport(String friendly_name, URL url) throws UPnPException - Throws:
UPnPException
-
forceDirect
protected boolean forceDirect() -
performSOAPRequest
public SimpleXMLParserDocument performSOAPRequest(UPnPService service, String soap_action, String request, InetAddress bind) throws SimpleXMLParserDocumentException, UPnPException, IOException -
performSOAPRequest
public SimpleXMLParserDocument performSOAPRequest(UPnPService service, String soap_action, String request, boolean use_http_connection, InetAddress bind) throws SimpleXMLParserDocumentException, UPnPException, IOException The use_http_connection flag is set to false sometimes to avoid using the URLConnection library for some dopey UPnP routers. -
getTraceFile
-
getAdapter
-
reportActivity
- Specified by:
reportActivityin interfaceResourceDownloaderListener- Overrides:
reportActivityin classResourceDownloaderAdapter
-
failed
- Specified by:
failedin interfaceResourceDownloaderListener- Overrides:
failedin classResourceDownloaderAdapter
-
log
-
log
-
logAlert
-
addLogListener
- Specified by:
addLogListenerin interfaceUPnP
-
removeLogListener
- Specified by:
removeLogListenerin interfaceUPnP
-
getRootDevices
- Specified by:
getRootDevicesin interfaceUPnP
-
addRootDeviceListener
- Specified by:
addRootDeviceListenerin interfaceUPnP
-
removeRootDeviceListener
- Specified by:
removeRootDeviceListenerin interfaceUPnP
-