public class DefaultLoadHandler extends java.lang.Object implements LoadHandler
LoadHandler
interface. This implementation is used by default in
Browser
instance. By default this implementation allows loading any URL and accept any SSL certificates.
Constructor and Description |
---|
DefaultLoadHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canNavigateOnBackspace()
Allows navigating backward/forward when user presses Backspace/Shift+Backspace.
当用户按下Backspace / Shift + Backspace时允许向后/向前导航。 |
boolean |
onCertificateError(CertificateErrorParams params)
Allows using problematic SSL certificates.
允许使用有问题的SSL证书。 |
boolean |
onLoad(LoadParams params)
Allows loading all URLs.
允许加载所有URL。 |
public boolean onLoad(LoadParams params)
false
.
onLoad
in interface
LoadHandler
params
- information about load event.
-有关加载事件的信息。
true
if loading must be canceled.
是否必须取消加载。
public boolean canNavigateOnBackspace()
true
;
public boolean onCertificateError(CertificateErrorParams params)
false
.
onCertificateError
in interface
LoadHandler
params
- provides information about problematic SSL certificate.
-提供有关有问题的SSL证书的信息。
true
if loading must be canceled and
false
if you ignore SSL certificate error and want to load the required resource.
是否必须取消加载以及是否忽略SSL证书错误并想加载所需的资源。