|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smack.SmackConfiguration
public final class SmackConfiguration
Represents the configuration of Smack. The configuration is used for:
| Method Summary | |
|---|---|
static void |
addSaslMech(String mech)
Add a SASL mechanism to the list to be used. |
static void |
addSaslMechs(Collection<String> mechs)
Add a Collection of SASL mechanisms to the list to be used. |
static int |
getKeepAliveInterval()
Returns the number of milleseconds delay between sending keep-alive requests to the server. |
static int |
getPacketReplyTimeout()
Returns the number of milliseconds to wait for a response from the server. |
static List<String> |
getSaslMechs()
Returns the list of SASL mechanisms to be used. |
static String |
getVersion()
Returns the Smack version information, eg "1.3.0". |
static boolean |
isDnsSecEnabled()
Returns whether or not to verify the DNSSEC signatures of host names. |
static void |
removeSaslMech(String mech)
Remove a SASL mechanism from the list to be used. |
static void |
removeSaslMechs(Collection<String> mechs)
Remove a Collection of SASL mechanisms to the list to be used. |
static void |
setDnsSecEnabled(boolean dnsSecEnabled)
Sets whether or not to verify the DNSSEC signatures of host names. |
static void |
setKeepAliveInterval(int interval)
Sets the number of milleseconds delay between sending keep-alive requests to the server. |
static void |
setPacketReplyTimeout(int timeout)
Sets the number of milliseconds to wait for a response from the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getVersion()
public static int getPacketReplyTimeout()
public static void setPacketReplyTimeout(int timeout)
timeout - the milliseconds to wait for a response from the serverpublic static int getKeepAliveInterval()
public static void setKeepAliveInterval(int interval)
interval - the milliseconds to wait between keep-alive requests,
or -1 if no keep-alive should be sent.public static void addSaslMech(String mech)
mech - the SASL mechanism to be addedpublic static void addSaslMechs(Collection<String> mechs)
mechs - the Collection of SASL mechanisms to be addedpublic static void removeSaslMech(String mech)
mech - the SASL mechanism to be removedpublic static void removeSaslMechs(Collection<String> mechs)
mechs - the Collection of SASL mechanisms to be removedpublic static List<String> getSaslMechs()
public static void setDnsSecEnabled(boolean dnsSecEnabled)
dnsSecEnabled - Whether or not to use DNSSEC.public static boolean isDnsSecEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||