Methods Summary |
---|
public void | addListener(UPnPMappingListener l)
listeners.add(l);
|
protected void | changed()
for (int i=0;i<listeners.size();i++){
((UPnPMappingListener)listeners.get(i)).mappingChanged( this );
}
|
public void | destroy()
for (int i=0;i<listeners.size();i++){
((UPnPMappingListener)listeners.get(i)).mappingDestroyed( this );
}
|
public int | getPersistent()
return( persistent );
|
public int | getPort()
return( port );
|
public java.lang.String | getString(int port)
String name;
if ( MessageText.keyExists( resource_name )){
name = MessageText.getString( resource_name );
}else{
name = resource_name;
}
return( name + " (" + (isTCP()?"TCP":"UDP")+"/"+port+")" );
|
public java.lang.String | getString()
return( getString(getPort()));
|
public boolean | isEnabled()
return( enabled );
|
public boolean | isTCP()
return( tcp );
|
public void | removeListener(UPnPMappingListener l)
listeners.remove(l);
|
public void | setEnabled(boolean _enabled)
if ( enabled != _enabled ){
enabled = _enabled;
changed();
}
|
public void | setPersistent(int _persistent)
persistent = _persistent;
|
public void | setPort(int _port)
if ( port != _port ){
port = _port;
changed();
}
|