cgl.narada.util.proxy
Class WinProxyDetection

java.lang.Object
  extended by cgl.narada.util.proxy.WinProxyDetection

public class WinProxyDetection
extends Object

Proxy detection is done on every instantiation. The required WinProxyDetection.dll is developed by James Poelke under contract to Indiana University.

Version:
1.0

Field Summary
static byte PROXY_TYPE_AUTO_DETECT
           
static byte PROXY_TYPE_AUTO_PROXY_URL
           
static byte PROXY_TYPE_DIRECT
           
static byte PROXY_TYPE_MANUAL
           
 
Constructor Summary
WinProxyDetection()
           
 
Method Summary
 int DetectProxySettings()
          ---------------------------------------------------------------------
 String GetDomainWorkgroupName()
           
 String GetHostName()
           
 String GetProxyBypass()
           
 String GetProxyServer()
           
 String GetProxyURL()
           
 boolean isEnabled(byte type)
          --------------------------------------------------------------
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROXY_TYPE_DIRECT

public static final byte PROXY_TYPE_DIRECT
See Also:
Constant Field Values

PROXY_TYPE_MANUAL

public static final byte PROXY_TYPE_MANUAL
See Also:
Constant Field Values

PROXY_TYPE_AUTO_PROXY_URL

public static final byte PROXY_TYPE_AUTO_PROXY_URL
See Also:
Constant Field Values

PROXY_TYPE_AUTO_DETECT

public static final byte PROXY_TYPE_AUTO_DETECT
See Also:
Constant Field Values
Constructor Detail

WinProxyDetection

public WinProxyDetection()
Method Detail

isEnabled

public boolean isEnabled(byte type)
--------------------------------------------------------------

Parameters:
type - One of PROXY_TYPE_XXXXXX
Returns:
true if this option is enabled.

DetectProxySettings

public int DetectProxySettings()
---------------------------------------------------------------------

Returns:
An OR of
    PROXY_TYPE_DIRECT = 0x01 [ This is always on ]
    PROXY_TYPE_PROXY = 0x02
    PROXY_TYPE_AUTO_PROXY_URL = 0x04
    PROXY_TYPE_AUTO_DETECT = 0x08

GetProxyServer

public String GetProxyServer()

GetProxyURL

public String GetProxyURL()

GetProxyBypass

public String GetProxyBypass()

GetHostName

public String GetHostName()

GetDomainWorkgroupName

public String GetDomainWorkgroupName()


For comments and suggestions please send e-mail to The NaradaBrokering Project