Class UPnPPlugin

    • Constructor Detail

      • UPnPPlugin

        public UPnPPlugin()
    • Method Detail

      • initialize

        public void initialize​(PluginInterface _plugin_interface)
        Description copied from interface: Plugin
        This method is called when the Plugin is loaded by the client
        Specified by:
        initialize in interface Plugin
        Parameters:
        _plugin_interface - the interface that the plugin must use to communicate with the client
      • updateIgnoreList

        protected void updateIgnoreList()
      • ignoreDevice

        protected void ignoreDevice​(java.lang.String USN,
                                    java.net.URL location)
      • startUp

        protected void startUp()
      • closeDown

        protected void closeDown​(boolean end_of_day)
      • deviceDiscovered

        public boolean deviceDiscovered​(java.lang.String USN,
                                        java.net.URL location)
        Specified by:
        deviceDiscovered in interface UPnPListener
      • logNoRepeat

        protected void logNoRepeat​(java.lang.String usn,
                                   java.lang.String msg,
                                   java.lang.String suffix)
      • checkDeviceStats

        protected boolean checkDeviceStats​(UPnPRootDevice root)
      • checkDeviceStats

        protected boolean checkDeviceStats​(java.lang.String USN,
                                           java.net.URL location)
      • incrementDeviceStats

        protected long incrementDeviceStats​(java.lang.String USN,
                                            java.lang.String stat_key)
      • getDeviceStats

        protected long getDeviceStats​(java.lang.String USN,
                                      java.lang.String stat_key)
      • setDeviceStats

        protected void setDeviceStats​(java.lang.String USN,
                                      java.lang.String stat_key,
                                      long value)
      • getSelectedInterfaces

        protected java.lang.String[] getSelectedInterfaces()
      • getSelectedAddresses

        protected java.lang.String[] getSelectedAddresses()
      • removeService

        protected void removeService​(UPnPWANConnection wan_service,
                                     boolean replaced)
      • addMapping

        protected void addMapping​(UPnPMapping mapping)
      • checkState

        protected void checkState()
      • getExternalIPAddresses

        public java.lang.String[] getExternalIPAddresses()
      • addMapping

        public UPnPMapping addMapping​(java.lang.String desc_resource,
                                      boolean tcp,
                                      int port,
                                      boolean enabled)
      • getMapping

        public UPnPMapping getMapping​(boolean tcp,
                                      int port)
      • isEnabled

        public boolean isEnabled()
      • setNATPMPEnableState

        protected void setNATPMPEnableState()
      • logAlert

        protected void logAlert​(int type,
                                java.lang.String resource,
                                java.lang.String[] params)
      • refreshMappings

        public void refreshMappings()
        Provided for use by other plugins.
      • refreshMappings

        public void refreshMappings​(boolean force)
        Provided for use by other plugins.