Class Network.Request

    • Constructor Summary

      Constructor Description
      Request​(String url, String urlFragment, String method, JsonObject headers, String postData, Boolean hasPostData, Network.PostDataEntry[] postDataEntries, String mixedContentType, String initialPriority, String referrerPolicy, Boolean isLinkPreload, Network.TrustTokenParams trustTokenParams, Boolean isSameSite)
      Request​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Request

        public Request​(java.lang.String url,
                       java.lang.String urlFragment,
                       java.lang.String method,
                       JsonObject headers,
                       java.lang.String postData,
                       java.lang.Boolean hasPostData,
                       Network.PostDataEntry[] postDataEntries,
                       java.lang.String mixedContentType,
                       java.lang.String initialPriority,
                       java.lang.String referrerPolicy,
                       java.lang.Boolean isLinkPreload,
                       Network.TrustTokenParams trustTokenParams,
                       java.lang.Boolean isSameSite)
        url - Request URL (without fragment).
        urlFragment - Fragment of the requested URL starting with hash, if present.
        method - HTTP request method.
        headers - HTTP request headers.
        postData - HTTP POST request data.
        hasPostData - True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
        postDataEntries - Request body elements. This will be converted from base64 to binary
        mixedContentType - The mixed content type of the request.
        initialPriority - Priority of the resource request at the time request is sent.
        referrerPolicy - The referrer policy of the request, as defined in
        Acceptable Values: ["unsafe-url", "no-referrer-when-downgrade", "no-referrer", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin"]
        isLinkPreload - Whether is loaded via link preload.
        trustTokenParams - Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.
        isSameSite - True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.
      • Request

        public Request​(JsonObject jo)
        JSON Object Constructor
        jo - A Json-Object having data about an instance of 'Request'.
    • Method Detail

      • optionals

        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.