com.aelitis.azureus.plugins.upnp
Class UPnPMapping

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

public class UPnPMapping
extends Object


Field Summary
protected  boolean enabled
           
protected  List listeners
           
protected  int persistent
           
protected  int port
           
static int PT_DEFAULT
           
static int PT_PERSISTENT
           
static int PT_TRANSIENT
           
protected  String resource_name
           
protected  boolean tcp
           
 
Constructor Summary
protected UPnPMapping(String _resource_name, boolean _tcp, int _port, boolean _enabled)
           
 
Method Summary
 void addListener(UPnPMappingListener l)
           
protected  void changed()
           
 void destroy()
           
 int getPersistent()
           
 int getPort()
           
 String getString()
           
 String getString(int port)
           
 boolean isEnabled()
           
 boolean isTCP()
           
 void removeListener(UPnPMappingListener l)
           
 void setEnabled(boolean _enabled)
           
 void setPersistent(int _persistent)
           
 void setPort(int _port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

UPnPMapping

protected UPnPMapping(String _resource_name,
                      boolean _tcp,
                      int _port,
                      boolean _enabled)
Method Detail

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)