|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.littleshoot.proxy.LittleProxyConfig
public class LittleProxyConfig
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 |
|---|
public static void setUseDnsSec(boolean useDnsSec)
useDnsSec - Whether or not to use DNSSEC.public static boolean isUseDnsSec()
true if configured to use DNSSEC, otherwise
false.public static void setUseJmx(boolean useJmx)
useJmx - Whether or not to use JMX.public static boolean isUseJmx()
true if JMX is turned on, otherwise
false.public static void setProxyCacheManagerClass(String clazz)
public static String getProxyCacheManagerClass()
public static void setTransparent(boolean transparent)
transparent - if true does not add the 'via' header.public static boolean isTransparent()
true if the proxy does not add the 'via' header, otherwise
false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||