public final class SmackConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_ENABLED
Value that indicates whether debugging is enabled.
|
| Constructor and Description |
|---|
SmackConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCompressionHandler(XMPPInputOutputStream xmppInputOutputStream) |
static void |
addSaslMech(java.lang.String mech)
Add a SASL mechanism to the list to be used.
|
static void |
addSaslMechs(java.util.Collection<java.lang.String> mechs)
Add a Collection of SASL mechanisms to the list to be used.
|
static java.util.List<XMPPInputOutputStream> |
getCompresionHandlers() |
static int |
getDefaultPacketReplyTimeout()
Returns the number of milliseconds to wait for a response from
the server.
|
static ParsingExceptionCallback |
getDefaultParsingExceptionCallback()
Returns the default parsing exception callback
|
static int |
getPacketCollectorSize()
Gets the default max size of a packet collector before it will delete
the older packets.
|
static java.util.List<java.lang.String> |
getSaslMechs()
Returns the list of SASL mechanisms to be used.
|
static java.lang.String |
getVersion()
Returns the Smack version information, eg "1.3.0".
|
static void |
processConfigFile(java.io.InputStream cfgFileStream,
java.util.Collection<java.lang.Exception> exceptions) |
static void |
processConfigFile(java.io.InputStream cfgFileStream,
java.util.Collection<java.lang.Exception> exceptions,
java.lang.ClassLoader classLoader) |
static void |
removeSaslMech(java.lang.String mech)
Remove a SASL mechanism from the list to be used.
|
static void |
removeSaslMechs(java.util.Collection<java.lang.String> mechs)
Remove a Collection of SASL mechanisms to the list to be used.
|
static void |
setDefaultHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
Set the default HostnameVerifier that will be used by XMPP connections to verify the hostname
of a TLS certificate.
|
static void |
setDefaultPacketReplyTimeout(int timeout)
Sets the number of milliseconds to wait for a response from
the server.
|
static void |
setDefaultParsingExceptionCallback(ParsingExceptionCallback callback)
Set the default parsing exception callback for all newly created connections
|
static void |
setPacketCollectorSize(int collectorSize)
Sets the default max size of a packet collector before it will delete
the older packets.
|
public static boolean DEBUG_ENABLED
public static java.lang.String getVersion()
public static int getDefaultPacketReplyTimeout()
public static void setDefaultPacketReplyTimeout(int timeout)
timeout - the milliseconds to wait for a response from the serverpublic static int getPacketCollectorSize()
public static void setPacketCollectorSize(int collectorSize)
collectorSize - the number of packets to queue before deleting older packets.public static void addSaslMech(java.lang.String mech)
mech - the SASL mechanism to be addedpublic static void addSaslMechs(java.util.Collection<java.lang.String> mechs)
mechs - the Collection of SASL mechanisms to be addedpublic static void removeSaslMech(java.lang.String mech)
mech - the SASL mechanism to be removedpublic static void removeSaslMechs(java.util.Collection<java.lang.String> mechs)
mechs - the Collection of SASL mechanisms to be removedpublic static java.util.List<java.lang.String> getSaslMechs()
public static void setDefaultParsingExceptionCallback(ParsingExceptionCallback callback)
callback - ParsingExceptionCallbackpublic static ParsingExceptionCallback getDefaultParsingExceptionCallback()
ParsingExceptionCallbackpublic static void addCompressionHandler(XMPPInputOutputStream xmppInputOutputStream)
public static java.util.List<XMPPInputOutputStream> getCompresionHandlers()
public static void setDefaultHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
ConnectionConfiguration.setHostnameVerifier(HostnameVerifier).public static void processConfigFile(java.io.InputStream cfgFileStream,
java.util.Collection<java.lang.Exception> exceptions)
throws java.lang.Exception
java.lang.Exceptionpublic static void processConfigFile(java.io.InputStream cfgFileStream,
java.util.Collection<java.lang.Exception> exceptions,
java.lang.ClassLoader classLoader)
throws java.lang.Exception
java.lang.Exception