Class WebsiteDataAccessPermissionRequest

All Implemented Interfaces:
Proxy, PermissionRequest

@Generated("org.javagi.JavaGI") public final class WebsiteDataAccessPermissionRequest extends GObject implements PermissionRequest

A permission request for accessing website data from third-party domains.

WebKitWebsiteDataAccessPermissionRequest represents a request for permission to allow a third-party domain access its cookies.

When a WebKitWebsiteDataAccessPermissionRequest is not handled by the user, it is denied by default.

Since:
2.30
  • Constructor Details

    • WebsiteDataAccessPermissionRequest

      public WebsiteDataAccessPermissionRequest(MemorySegment address)
      Create a WebsiteDataAccessPermissionRequest instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • WebsiteDataAccessPermissionRequest

      public WebsiteDataAccessPermissionRequest()
      Create a new WebsiteDataAccessPermissionRequest.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the WebsiteDataAccessPermissionRequest class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected WebsiteDataAccessPermissionRequest asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getCurrentDomain

      public String getCurrentDomain()
      Get the current domain being browsed.
      Returns:
      the current domain name
      Since:
      2.30
    • getRequestingDomain

      public String getRequestingDomain()
      Get the domain requesting permission to access its cookies while browsing the current domain.
      Returns:
      the requesting domain name
      Since:
      2.30
    • builder

      A WebsiteDataAccessPermissionRequest.Builder object constructs a WebsiteDataAccessPermissionRequest with the specified properties. Use the various set...() methods to set properties, and finish construction with WebsiteDataAccessPermissionRequest.Builder.build().
      Returns:
      the builder object