com.aelitis.azureus.plugins.upnp
Class UPnPMappingManager
java.lang.Object
com.aelitis.azureus.plugins.upnp.UPnPMappingManager
public class UPnPMappingManager
- extends java.lang.Object
Method Summary |
protected void |
addConfigListener(java.lang.String param,
ParameterListener listener)
|
protected UPnPMapping |
addConfigPort(java.lang.String name_resource,
boolean tcp,
boolean enabled,
java.lang.String int_param_name)
|
protected void |
addConfigPort(java.lang.String name_resource,
boolean tcp,
java.lang.String enabler_param_name,
java.lang.String int_param_name)
|
protected void |
addConfigPortX(java.lang.String name_resource,
boolean tcp,
java.lang.String enabler_param_name,
java.lang.String string_param_name)
|
protected void |
added(UPnPMapping mapping)
|
void |
addListener(UPnPMappingManagerListener l)
|
UPnPMapping |
addMapping(java.lang.String desc_resource,
boolean tcp,
int port,
boolean enabled)
|
UPnPMapping |
getMapping(boolean tcp,
int port)
|
java.util.List |
getMappingEx(boolean tcp,
int port)
|
UPnPMapping[] |
getMappings()
|
protected static UPnPMappingManager |
getSingleton(UPnPPlugin plugin)
|
void |
removeListener(UPnPMappingManagerListener l)
|
protected void |
serviceFound(UPnPWANConnection service)
|
protected java.util.List |
stringToPorts(java.lang.String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPnPMappingManager
protected UPnPMappingManager(UPnPPlugin _plugin)
getSingleton
protected static UPnPMappingManager getSingleton(UPnPPlugin plugin)
serviceFound
protected void serviceFound(UPnPWANConnection service)
addConfigPort
protected UPnPMapping addConfigPort(java.lang.String name_resource,
boolean tcp,
boolean enabled,
java.lang.String int_param_name)
addConfigPort
protected void addConfigPort(java.lang.String name_resource,
boolean tcp,
java.lang.String enabler_param_name,
java.lang.String int_param_name)
addConfigPortX
protected void addConfigPortX(java.lang.String name_resource,
boolean tcp,
java.lang.String enabler_param_name,
java.lang.String string_param_name)
stringToPorts
protected java.util.List stringToPorts(java.lang.String str)
addMapping
public UPnPMapping addMapping(java.lang.String desc_resource,
boolean tcp,
int port,
boolean enabled)
getMappings
public UPnPMapping[] getMappings()
getMapping
public UPnPMapping getMapping(boolean tcp,
int port)
getMappingEx
public java.util.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(java.lang.String param,
ParameterListener listener)