Class Network.Request

    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
        See Also:
        Constant Field Values
      • hasPostData

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Boolean 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.
        OPTIONAL
      • mixedContentType

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String mixedContentType
        The mixed content type of the request.
        OPTIONAL

        This particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:

        📎 Security.MixedContentType


        Programmatically Accessing the Enum:
        // Retrieve the list of enumerated strings for this field
        ReadOnlyList<String> enumerationStrs = Security.MixedContentType.enumStrList("mixedContentType");
        
        // Print the list of strings to the terminal
        for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
        
        See Also:
        BaseType.enumStrList(String)
      • initialPriority

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String initialPriority
        Priority of the resource request at the time request is sent.

        This particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:

        📎 Network.ResourcePriority


        Programmatically Accessing the Enum:
        // Retrieve the list of enumerated strings for this field
        ReadOnlyList<String> enumerationStrs = Network.ResourcePriority.enumStrList("initialPriority");
        
        // Print the list of strings to the terminal
        for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
        
        See Also:
        BaseType.enumStrList(String)
      • referrerPolicy

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String referrerPolicy
        The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

        This particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed inside the hilited source code from this class nested helper. Click the link below, and scroll down to find the definition for a ReadOnlyList<String> named 'referrerPolicy$$':

        📎 Network$$Request$$


        Programmatically Accessing the Enum:
        // Retrieve the list of enumerated strings for this field
        ReadOnlyList<String> enumerationStrs = Network.Request.enumStrList("referrerPolicy");
        
        // Print the list of strings to the terminal
        for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
        
        See Also:
        BaseType.enumStrList(String)
      • isSameSite

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Boolean isSameSite
        True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.
        OPTIONALEXPERIMENTAL
    • Constructor Detail

      • Request

        🡅  🡇     🗕  🗗  🗖
        public Request​(ReadOnlyList<java.lang.Boolean> isPresent,
                       java.lang.String url,
                       java.lang.String urlFragment,
                       java.lang.String method,
                       JsonValue 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)
        Constructor. Please review this class' fields for documentation.