com.aelitis.azureus.plugins.upnp
Class UPnPMappingManager

java.lang.Object
  extended by com.aelitis.azureus.plugins.upnp.UPnPMappingManager

public class UPnPMappingManager
extends Object


Constructor Summary
protected UPnPMappingManager(UPnPPlugin _plugin)
           
 
Method Summary
protected  void addConfigListener(String param, ParameterListener listener)
           
protected  UPnPMapping addConfigPort(String name_resource, boolean tcp, boolean enabled, String int_param_name)
           
protected  void addConfigPort(String name_resource, boolean tcp, String enabler_param_name, String int_param_name)
           
protected  void addConfigPortX(String name_resource, boolean tcp, String enabler_param_name, String string_param_name)
           
protected  void added(UPnPMapping mapping)
           
 void addListener(UPnPMappingManagerListener l)
           
 UPnPMapping addMapping(String desc_resource, boolean tcp, int port, boolean enabled)
           
 UPnPMapping getMapping(boolean tcp, int port)
           
 List getMappingEx(boolean tcp, int port)
           
 UPnPMapping[] getMappings()
           
protected static UPnPMappingManager getSingleton(UPnPPlugin plugin)
           
 void removeListener(UPnPMappingManagerListener l)
           
protected  void serviceFound(UPnPWANConnection service)
           
protected  List stringToPorts(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPnPMappingManager

protected UPnPMappingManager(UPnPPlugin _plugin)
Method Detail

getSingleton

protected static UPnPMappingManager getSingleton(UPnPPlugin plugin)

serviceFound

protected void serviceFound(UPnPWANConnection service)

addConfigPort

protected UPnPMapping addConfigPort(String name_resource,
                                    boolean tcp,
                                    boolean enabled,
                                    String int_param_name)

addConfigPort

protected void addConfigPort(String name_resource,
                             boolean tcp,
                             String enabler_param_name,
                             String int_param_name)

addConfigPortX

protected void addConfigPortX(String name_resource,
                              boolean tcp,
                              String enabler_param_name,
                              String string_param_name)

stringToPorts

protected List stringToPorts(String str)

addMapping

public UPnPMapping addMapping(String desc_resource,
                              boolean tcp,
                              int port,
                              boolean enabled)

getMappings

public UPnPMapping[] getMappings()

getMapping

public UPnPMapping getMapping(boolean tcp,
                              int port)

getMappingEx

public List getMappingEx(boolean tcp,
                         int port)

added

protected void added(UPnPMapping mapping)

addListener

public void addListener(UPnPMappingManagerListener l)

removeListener

public void removeListener(UPnPMappingManagerListener l)

addConfigListener

protected void addConfigListener(String param,
                                 ParameterListener listener)