com.aelitis.azureus.plugins.upnp
Class UPnPMapping
java.lang.Object
com.aelitis.azureus.plugins.upnp.UPnPMapping
public class UPnPMapping
- extends java.lang.Object
Constructor Summary |
protected |
UPnPMapping(java.lang.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 java.lang.String resource_name
tcp
protected boolean tcp
port
protected int port
enabled
protected boolean enabled
persistent
protected int persistent
listeners
protected java.util.List listeners
UPnPMapping
protected UPnPMapping(java.lang.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 java.lang.String getString()
getString
public java.lang.String getString(int port)
destroy
public void destroy()
changed
protected void changed()
addListener
public void addListener(UPnPMappingListener l)
removeListener
public void removeListener(UPnPMappingListener l)