Package Torello.Browser.BrowserAPI
Class Network.responseReceivedExtraInfo
- java.lang.Object
-
- Torello.Browser.BaseType<DOMAIN_NESTED>
-
- Torello.Browser.BrowserEvent<Network.responseReceivedExtraInfo>
-
- Torello.Browser.BrowserAPI.Network.responseReceivedExtraInfo
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Network
public static class Network.responseReceivedExtraInfo extends BrowserEvent<Network.responseReceivedExtraInfo> implements java.io.Serializable
This Nested Java Class is declared as an Event-Type by the CDP API Specifications. This class largely functions as a data container or "data record", and encapsulates the datum values that Google Chrome is incorporating into the event that it is firing.
📌 All browser domain event classes will have a class name that begins with a lower case letter.
👉 Note that this particular event can be fired by theNetworkdomain, located in theBrowserAPI. A browser 'domain' is quite similar to a Java Package. It incorporates a suite of features, types and functions under one umbrella.Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/Network.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/Network.java
File Size: 5,667 Bytes Line Count: 114 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Network$$responseReceivedExtraInfo$$.java
- Open New Browser-Tab: Network$$responseReceivedExtraInfo$$.java
File Size: 14,496 Bytes Line Count: 330 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description Network.BlockedSetCookieWithReason[]blockedCookiesA list of cookies which were not stored from the response along with the corresponding reasons for blocking.Network.CookiePartitionKeycookiePartitionKeyThe cookie partition key that will be used to store partitioned cookies set in this response.BooleancookiePartitionKeyOpaqueTrue if partitioned cookies are enabled, but the partition key is not serializable to string.Network.ExemptedSetCookieWithReason[]exemptedCookiesA list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.JsonValueheadersRaw response headers as they were received over the wire.StringheadersTextRaw response header text as it was received over the wire.StringrequestIdRequest identifier.StringresourceIPAddressSpaceThe IP address space of the resource.intstatusCodeThe status code of the response.
-
Constructor Summary
Constructors Constructor Description responseReceivedExtraInfo(ReadOnlyList<Boolean> isPresent, String requestId, Network.BlockedSetCookieWithReason[] blockedCookies, JsonValue headers, String resourceIPAddressSpace, int statusCode, String headersText, Network.CookiePartitionKey cookiePartitionKey, Boolean cookiePartitionKeyOpaque, Network.ExemptedSetCookieWithReason[] exemptedCookies)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Network.responseReceivedExtraInfofromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Network.responseReceivedExtraInfo>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation 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
-
requestId
public final java.lang.String requestId
Request identifier. Used to match this information to another responseReceived event.
-
blockedCookies
public final Network.BlockedSetCookieWithReason[] blockedCookies
A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.
-
headers
-
resourceIPAddressSpace
public final java.lang.String resourceIPAddressSpace
The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it inrequestWillBeSentExtraInfo.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.IPAddressSpace
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = Network.IPAddressSpace.enumStrList("resourceIPAddressSpace"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
statusCode
public final int statusCode
The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.
-
headersText
public final java.lang.String headersText
Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.
OPTIONAL
-
cookiePartitionKey
public final Network.CookiePartitionKey cookiePartitionKey
The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.
OPTIONALEXPERIMENTAL
-
cookiePartitionKeyOpaque
public final java.lang.Boolean cookiePartitionKeyOpaque
True if partitioned cookies are enabled, but the partition key is not serializable to string.
OPTIONAL
-
exemptedCookies
public final Network.ExemptedSetCookieWithReason[] exemptedCookies
A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.
OPTIONAL
-
-
Constructor Detail
-
responseReceivedExtraInfo
public responseReceivedExtraInfo (ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String requestId, Network.BlockedSetCookieWithReason[] blockedCookies, JsonValue headers, java.lang.String resourceIPAddressSpace, int statusCode, java.lang.String headersText, Network.CookiePartitionKey cookiePartitionKey, java.lang.Boolean cookiePartitionKeyOpaque, Network.ExemptedSetCookieWithReason[] exemptedCookies)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Network.responseReceivedExtraInfo fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Network.responseReceivedExtraInfo> descriptor ()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-