com.aelitis.azureus.plugins.upnp
Class UPnPMapping
java.lang.Object
com.aelitis.azureus.plugins.upnp.UPnPMapping
public class UPnPMapping
- extends Object
Constructor Summary |
protected |
UPnPMapping(String _resource_name,
boolean _tcp,
int _port,
boolean _enabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PT_DEFAULT
public static final int PT_DEFAULT
- See Also:
- Constant Field Values
PT_PERSISTENT
public static final int PT_PERSISTENT
- See Also:
- Constant Field Values
PT_TRANSIENT
public static final int PT_TRANSIENT
- See Also:
- Constant Field Values
resource_name
protected String resource_name
tcp
protected boolean tcp
port
protected int port
enabled
protected boolean enabled
persistent
protected int persistent
listeners
protected List listeners
UPnPMapping
protected UPnPMapping(String _resource_name,
boolean _tcp,
int _port,
boolean _enabled)
setPersistent
public void setPersistent(int _persistent)
getPersistent
public int getPersistent()
isTCP
public boolean isTCP()
getPort
public int getPort()
setPort
public void setPort(int _port)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean _enabled)
getString
public String getString()
getString
public String getString(int port)
destroy
public void destroy()
changed
protected void changed()
addListener
public void addListener(UPnPMappingListener l)
removeListener
public void removeListener(UPnPMappingListener l)