org.littleshoot.commom.xmpp
Class XmppConfig

java.lang.Object
  extended by org.littleshoot.commom.xmpp.XmppConfig

public class XmppConfig
extends Object

Simple class for storing XMPP configuration. We cheat here and make this all static to avoid the overhead of integrating dependency injection that could collide with versions of libraries programs including XMPP are using.


Method Summary
static boolean isUseDnsSec()
          Whether or not we're configured to use DNSSEC for lookups.
static XmppConnectionRetyStrategy newRetyStrategy()
           
static void setRetyStrategyFactory(XmppConnectionRetyStrategyFactory connectionRetyStrategy)
           
static void setUseDnsSec(boolean useDnsSec)
          Sets whether or not to use DNSSEC to request signed records when performing DNS lookups and verifying those records if they exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUseDnsSec

public static void setUseDnsSec(boolean useDnsSec)
Sets whether or not to use DNSSEC to request signed records when performing DNS lookups and verifying those records if they exist.

Parameters:
useDnsSec - Whether or not to use DNSSEC.

isUseDnsSec

public static boolean isUseDnsSec()
Whether or not we're configured to use DNSSEC for lookups.

Returns:
true if configured to use DNSSEC, otherwise false.

setRetyStrategyFactory

public static void setRetyStrategyFactory(XmppConnectionRetyStrategyFactory connectionRetyStrategy)

newRetyStrategy

public static XmppConnectionRetyStrategy newRetyStrategy()


Copyright © 2014 LittleShoot. All Rights Reserved.