|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.webscarab.util.W32WinInet
public class W32WinInet
Provides a method of interacting with the Windows WinInet utility DLL. This is obviously only interesting on a MS Windows platform. Most usefully, it provides JNI methods of getting and setting the Internet Explorer proxy settings, in such a way that the changes affect all existing running instances of Internet Explorer immediately, and the user does NOT need to exit the browser for the changes to be effective.
Field Summary | |
---|---|
static int |
PROXY_TYPE_AUTO_DETECT
Specifies that the browser will auto detect the proxy, according to the MS auto-detect methodology |
static int |
PROXY_TYPE_AUTO_PROXY_URL
Not sure exactly what this one does. |
static int |
PROXY_TYPE_DIRECT
Specifies that some connections may be made directly to the server, bypassing the proxy |
static int |
PROXY_TYPE_PROXY
Specifies that some connections may go via a proxy |
Constructor Summary | |
---|---|
W32WinInet()
|
Method Summary | |
---|---|
static int |
getHttpProxyPort()
gets the port of the original WinInet HTTP proxy server, regardless of any intercepts that may have been made. |
static java.lang.String |
getHttpProxyServer()
gets the name or address of the original WinInet HTTP proxy server, regardless of any intercepts that may have been made. |
static int |
getHttpsProxyPort()
gets the port of the original WinInet HTTPS proxy server, regardless of any intercepts that may have been made. |
static java.lang.String |
getHttpsProxyServer()
gets the name or address of the original WinInet HTTPS proxy server, regardless of any intercepts that may have been made. |
static java.lang.String |
getNoProxy()
returns the original WinInet list of hosts or addresses that should be connected to directly, rather than using the proxy. |
static boolean |
interceptProxy(java.lang.String server,
int port)
Causes the existing WinInet proxy settings to be saved, and the new proxy settings supplied to be configured This sets the proxy for ALL services, and ensures that ALL connections go through the supplied proxy, including connections to local servers. |
static boolean |
isAvailable()
Allows the caller to test whether the native library was successfully loaded. |
static void |
main(java.lang.String[] args)
|
static void |
revertProxy()
resets the WinInet proxy settings to their original values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int PROXY_TYPE_DIRECT
public static int PROXY_TYPE_PROXY
public static int PROXY_TYPE_AUTO_PROXY_URL
public static int PROXY_TYPE_AUTO_DETECT
Constructor Detail |
---|
public W32WinInet()
Method Detail |
---|
public static boolean isAvailable()
public static boolean interceptProxy(java.lang.String server, int port)
server
- the name or address of the proxy serverport
- the port of the proxy server
public static void revertProxy()
public static java.lang.String getHttpProxyServer()
public static int getHttpProxyPort()
public static java.lang.String getHttpsProxyServer()
public static int getHttpsProxyPort()
public static java.lang.String getNoProxy()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |