Class URIRequest

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class URIRequest extends GObject

Represents a URI request.

A WebKitURIRequest can be created with a URI using the webkit_uri_request_new() method, and you can get the URI of an existing request with the webkit_uri_request_get_uri() one.

  • Constructor Details

    • URIRequest

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

      public URIRequest(String uri)
      Creates a new WebKitURIRequest for the given URI.
      Parameters:
      uri - an URI
    • URIRequest

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

    • getType

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

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

      protected URIRequest 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
    • getHttpHeaders

      public MessageHeaders getHttpHeaders()
      Get the HTTP headers of a WebKitURIRequest as a SoupMessageHeaders.
      Returns:
      a SoupMessageHeaders with the HTTP headers of this URIRequest or null if this URIRequest is not an HTTP request.
    • getHttpMethod

      public String getHttpMethod()
      Get the HTTP method of the WebKitURIRequest.
      Returns:
      the HTTP method of the WebKitURIRequest or null if this URIRequest is not an HTTP request.
      Since:
      2.12
    • getUri

      public String getUri()
      Obtains the request URI.
      Returns:
      request URI, as a string.
    • setUri

      public void setUri(String uri)
      Set the URI of this URIRequest
      Parameters:
      uri - an URI
    • builder

      public static URIRequest.Builder<? extends URIRequest.Builder> builder()
      A URIRequest.Builder object constructs a URIRequest with the specified properties. Use the various set...() methods to set properties, and finish construction with URIRequest.Builder.build().
      Returns:
      the builder object