|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.plugin.otr.OtrConfigurator
public class OtrConfigurator
A class that gets/sets the OTR configuration values. Introduced to assure our
configuration is properly written when XMLConfigurationStore is
used. Can be seen as a proxy between the ConfigurationService and the
OTR Plugin.
| Constructor Summary | |
|---|---|
OtrConfigurator()
|
|
| Method Summary | |
|---|---|
boolean |
getPropertyBoolean(String id,
boolean defaultValue)
Gets the value of a specific property as a boolean ( ConfigurationService.getBoolean(String, boolean) proxy). |
byte[] |
getPropertyBytes(String id)
Returns the value of the property with the specified name or null if no such property exists ( ConfigurationService.getProperty(String)
proxy). |
int |
getPropertyInt(String id,
int defaultValue)
Gets the value of a specific property as a signed decimal integer. |
void |
removeProperty(String id)
Removes the property with the specified name ( ConfigurationService.removeProperty(String) proxy). |
void |
setProperty(String id,
byte[] value)
Sets the property with the specified name to the specified value ( ConfigurationService.setProperty(String, Object) proxy). |
void |
setProperty(String id,
Object value)
Sets the property with the specified name to the specified value ( ConfigurationService.setProperty(String, Object) proxy). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OtrConfigurator()
| Method Detail |
|---|
public byte[] getPropertyBytes(String id)
ConfigurationService.getProperty(String)
proxy).
id - of the property that is being queried.
public boolean getPropertyBoolean(String id,
boolean defaultValue)
ConfigurationService.getBoolean(String, boolean) proxy).
id - of the property that is being queried.defaultValue - the value to be returned if the specified property
name is not associated with a value.
public void setProperty(String id,
byte[] value)
ConfigurationService.setProperty(String, Object) proxy). The
value is Base64 encoded.
id - the name of the property to change.value - the new value of the specified property.
public void setProperty(String id,
Object value)
ConfigurationService.setProperty(String, Object) proxy).
id - the name of the property to change.value - the new value of the specified property.public void removeProperty(String id)
ConfigurationService.removeProperty(String) proxy).
id - the name of the property to change.
public int getPropertyInt(String id,
int defaultValue)
id - the name of the property to change.defaultValue - the value to be returned if the specified property
name is not associated with a value.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||