Class CertificateErrorCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.net.internal.rpc.AllowCertificateError.Response>
com.teamdev.jxbrowser.browser.callback.CertificateErrorCallback.Action
Enclosing interface:
CertificateErrorCallback

public static final class CertificateErrorCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.net.internal.rpc.AllowCertificateError.Response>
An action providing a response to the CertificateErrorCallback.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.net.internal.rpc.AllowCertificateError.Response> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the browser that the certificate error must be ignored.
    void
    Notifies the browser that loading must be canceled.
    void
    Notifies the browser that the certificate error must not be ignored, and the page loading should be continued.

    Methods inherited from class com.teamdev.jxbrowser.callback.AsyncCallbackAction

    isClosed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.net.internal.rpc.AllowCertificateError.Response> consumer)
  • Method Details

    • allow

      public void allow()
      Notifies the browser that the certificate error must be ignored. The requested resource will be loaded.
    • deny

      public void deny()
      Notifies the browser that the certificate error must not be ignored, and the page loading should be continued. An error web page will be loaded in this case.
    • cancel

      public void cancel()
      Notifies the browser that loading must be canceled.