org.littleshoot.proxy
Class LittleProxyConfig

java.lang.Object
  extended by org.littleshoot.proxy.LittleProxyConfig

public class LittleProxyConfig
extends Object

Simple class for storing 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 this library are using.


Method Summary
static String getProxyCacheManagerClass()
           
static boolean isTransparent()
          Returns whether or not the proxy adds the 'via' header.
static boolean isUseDnsSec()
          Whether or not we're configured to use DNSSEC for lookups.
static boolean isUseJmx()
          Returns whether or not JMX is turned on.
static void setProxyCacheManagerClass(String clazz)
           
static void setTransparent(boolean transparent)
          Whether or not the proxy adds the 'via' header -- defaults to false.
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.
static void setUseJmx(boolean useJmx)
          Whether or not to use JMX -- defaults to false.
 
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.

setUseJmx

public static void setUseJmx(boolean useJmx)
Whether or not to use JMX -- defaults to false.

Parameters:
useJmx - Whether or not to use JMX.

isUseJmx

public static boolean isUseJmx()
Returns whether or not JMX is turned on.

Returns:
true if JMX is turned on, otherwise false.

setProxyCacheManagerClass

public static void setProxyCacheManagerClass(String clazz)

getProxyCacheManagerClass

public static String getProxyCacheManagerClass()

setTransparent

public static void setTransparent(boolean transparent)
Whether or not the proxy adds the 'via' header -- defaults to false.

Parameters:
transparent - if true does not add the 'via' header.

isTransparent

public static boolean isTransparent()
Returns whether or not the proxy adds the 'via' header.

Returns:
true if the proxy does not add the 'via' header, otherwise false.


Copyright © 2009-2013 LittleShoot. All Rights Reserved.