|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.win32.ie.Browsers
public class Browsers
This is a utility class for browser-related operations.
Field Summary | |
---|---|
static InternetFeatures |
PROCESS_FEATURES
The Internet features for the current process. |
static InternetFeatures |
THREAD_FEATURES
The Internet features for the current thread. |
static InternetFeatures |
THREAD_INTERNET_FEATURES
The Internet features for the Internet zone. |
static InternetFeatures |
THREAD_INTRANET_FEATURES
The Internet features for the intranet zone. |
static InternetFeatures |
THREAD_LOCALMACHINE_FEATURES
The Internet features for the local machine zone. |
static InternetFeatures |
THREAD_RESTRICTED_FEATURES
The Internet features for the restricted zone. |
static InternetFeatures |
THREAD_TRUSTED_FEATURES
The Internet features for the trusted zone. |
Method Summary | |
---|---|
static void |
clearCache(com.jniwrapper.win32.wininet.InternetCacheEntry cacheEntry)
Clears the Internet Explorer cache. |
static com.jniwrapper.win32.shdocvw.IWebBrowser2 |
getBrowserPeer(WebBrowser browser)
Returns an instance of the native web browser peer IWebBrowser2 of the passed browser object. |
static com.jniwrapper.win32.ui.Wnd |
getBrowserWindow(WebBrowser browser)
Returns handle of the browser window. |
static int |
getDisplayMixedContentSetting()
|
static java.lang.String |
getIEVersion()
Returns a major version of system MS Internet Explorer application. |
static com.jniwrapper.win32.automation.OleMessageLoop |
getOleMessageLoop(WebBrowser browser)
Returns an instance of the message loop support OleMessageLoop of the passed browser object. |
static ProxyConfiguration |
getProxy()
Returns the system local area network (LAN) proxy settings. |
static com.jniwrapper.win32.winhttp.ProxySettings |
getProxySettings()
Deprecated. use the getProxy() method instead |
static int |
getZoneActionPolicyValue(int urlZone,
int urlAction,
int urlZoneReg)
Gets the policy associated with the specified URL action. |
static boolean |
isBrowserSupported()
Function that determines if the IE browser version is supported. |
static boolean |
isSameBrowserPeer(WebBrowser webBrowser1,
WebBrowser webBrowser2)
Returns true if both object are web browsers for the same native browser. |
static void |
setDisplayMixedContentSetting(int value)
Updates the "Display Mixed Content" security setting. |
static void |
setProxy(ProxyConfiguration conf)
Updates the system local area network (LAN) proxy settings to the specified proxy server configuration. |
static void |
setZoneActionPolicyValue(int urlZone,
int urlAction,
int urlZoneReg,
int value)
Sets the action policy associated with a zone. |
static void |
turnOnCompatibilityMode(java.lang.String version)
Configures browser compatibility mode to the passed version. |
static void |
turnOnGPURendering()
Enables GPU acceleration for all Browser instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final InternetFeatures THREAD_FEATURES
public static final InternetFeatures PROCESS_FEATURES
public static final InternetFeatures THREAD_LOCALMACHINE_FEATURES
public static final InternetFeatures THREAD_INTRANET_FEATURES
public static final InternetFeatures THREAD_TRUSTED_FEATURES
public static final InternetFeatures THREAD_INTERNET_FEATURES
public static final InternetFeatures THREAD_RESTRICTED_FEATURES
Method Detail |
---|
public static com.jniwrapper.win32.shdocvw.IWebBrowser2 getBrowserPeer(WebBrowser browser)
IWebBrowser2
of the passed browser object.
browser
- browser object.
public static com.jniwrapper.win32.automation.OleMessageLoop getOleMessageLoop(WebBrowser browser)
OleMessageLoop
of the passed browser object.
browser
- browser object.
public static boolean isSameBrowserPeer(WebBrowser webBrowser1, WebBrowser webBrowser2)
webBrowser1
- the first instance to comparewebBrowser2
- the second instance to compare
public static com.jniwrapper.win32.ui.Wnd getBrowserWindow(WebBrowser browser)
browser
- browser object
public static boolean isBrowserSupported()
public static ProxyConfiguration getProxy()
setProxy(ProxyConfiguration)
public static void setProxy(ProxyConfiguration conf)
getProxy()
method.
conf
- the proxy settings to apply.
java.lang.IllegalArgumentException
- when the conf parameter is
null
getProxy()
public static com.jniwrapper.win32.winhttp.ProxySettings getProxySettings() throws com.jniwrapper.win32.winhttp.WinHttpException
getProxy()
method instead
com.jniwrapper.win32.winhttp.WinHttpException
- when some errors occurs during
receiving proxy settingsgetProxy()
public static java.lang.String getIEVersion()
null
when
some errors happen during version receiving.
java.lang.RuntimeException
- when cannot read MS IE version.public static void clearCache(com.jniwrapper.win32.wininet.InternetCacheEntry cacheEntry)
To clear:
InternetCacheEntry.NORMAL_CACHE_ENTRY
value.InternetCacheEntry.COOKIE_CACHE_ENTRY
value.InternetCacheEntry.URLHISTORY_CACHE_ENTRY
value.
cacheEntry
- Internet cache entry type that will be cleared.public static void turnOnGPURendering()
public static void turnOnCompatibilityMode(java.lang.String version)
version
- a string that represents compatibility mode version. This
string must represents a number in range: version
>= 7.public static int getDisplayMixedContentSetting()
java.lang.RuntimeException
- when cannot read security setting.setDisplayMixedContentSetting(int)
public static void setDisplayMixedContentSetting(int value)
value
- the new value of setting to apply.
java.lang.RuntimeException
- when cannot read security setting.getDisplayMixedContentSetting()
public static int getZoneActionPolicyValue(int urlZone, int urlAction, int urlZoneReg)
urlZone
- value of the zone. It should be one of the following:
IInternetZoneManagerImpl.URLZONE_INTERNET
IInternetZoneManagerImpl.URLZONE_INTRANET
IInternetZoneManagerImpl.URLZONE_TRUSTED
IInternetZoneManagerImpl.URLZONE_UNTRUSTED
IInternetZoneManagerImpl.URLZONE_LOCAL_MACHINE
urlAction
- value of the action. Foe example,
IInternetZoneManagerImpl.URLACTION_HTML_MIXED_CONTENT
urlZoneReg
- value that specifies the section in the registry. It should be one of the following:
IInternetZoneManagerImpl.URLZONEREG_DEFAULT
IInternetZoneManagerImpl.URLZONEREG_HKCU
IInternetZoneManagerImpl.URLZONEREG_HKLM
java.lang.RuntimeException
- when cannot read security setting.setZoneActionPolicyValue(int, int, int, int)
public static void setZoneActionPolicyValue(int urlZone, int urlAction, int urlZoneReg, int value)
urlZone
- value of the zone. It should be one of the following:
IInternetZoneManagerImpl.URLZONE_INTERNET
IInternetZoneManagerImpl.URLZONE_INTRANET
IInternetZoneManagerImpl.URLZONE_TRUSTED
IInternetZoneManagerImpl.URLZONE_UNTRUSTED
IInternetZoneManagerImpl.URLZONE_LOCAL_MACHINE
urlAction
- value of the action. Foe example,
IInternetZoneManagerImpl.URLACTION_HTML_MIXED_CONTENT
urlZoneReg
- value that specifies the section in the registry. It should be one of the following:
IInternetZoneManagerImpl.URLZONEREG_DEFAULT
IInternetZoneManagerImpl.URLZONEREG_HKCU
IInternetZoneManagerImpl.URLZONEREG_HKLM
value
- value of action
java.lang.RuntimeException
- when cannot read security setting.getZoneActionPolicyValue(int, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |