Package Torello.Browser.BrowserAPI
Class Network.Response
- java.lang.Object
-
- Torello.Browser.BaseType<Network.Response>
-
- Torello.Browser.BrowserAPI.Network.Response
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Network
public static class Network.Response extends BaseType<Network.Response> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theNetworkdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.HTTP response data.- 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: 9,570 Bytes Line Count: 225 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Network$$Response$$.java
- Open New Browser-Tab: Network$$Response$$.java
File Size: 25,689 Bytes Line Count: 550 '\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 StringalternateProtocolUsageThe reason why Chrome uses a specific transport protocol for HTTP semantics.StringcacheStorageCacheNameCache Storage Cache Name.StringcharsetResource charset as determined by the browser (if applicable).NumberconnectionIdPhysical connection id that was actually used for this request.booleanconnectionReusedSpecifies whether physical connection was actually reused for this request.NumberencodedDataLengthTotal number of bytes received for this request so far.BooleanfromDiskCacheSpecifies that the request was served from the disk cache.BooleanfromEarlyHintsSpecifies that the request was served from the prefetch cache.BooleanfromPrefetchCacheSpecifies that the request was served from the prefetch cache.BooleanfromServiceWorkerSpecifies that the request was served from the ServiceWorker.JsonValueheadersHTTP response headers.StringheadersTextHTTP response headers text.BooleanisIpProtectionUsedIndicates whether the request was sent through IP Protection proxies.StringmimeTypeResource mimeType as determined by the browser.StringprotocolProtocol used to fetch this request.StringremoteIPAddressRemote IP address.IntegerremotePortRemote port.JsonValuerequestHeadersRefined HTTP request headers that were actually transmitted over the network.StringrequestHeadersTextHTTP request headers text.NumberresponseTimeThe time at which the returned response was generated.Network.SecurityDetailssecurityDetailsSecurity details for the request.StringsecurityStateSecurity state of the request resource.StringserviceWorkerResponseSourceResponse source of response from ServiceWorker.Network.ServiceWorkerRouterInfoserviceWorkerRouterInfoInformation about how ServiceWorker Static Router API was used.intstatusHTTP response status code.StringstatusTextHTTP response status text.Network.ResourceTimingtimingTiming information for the given request.StringurlResponse URL.
-
Constructor Summary
Constructors Constructor Description Response(ReadOnlyList<Boolean> isPresent, String url, int status, String statusText, JsonValue headers, String headersText, String mimeType, String charset, JsonValue requestHeaders, String requestHeadersText, boolean connectionReused, Number connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Boolean fromEarlyHints, Network.ServiceWorkerRouterInfo serviceWorkerRouterInfo, Number encodedDataLength, Network.ResourceTiming timing, String serviceWorkerResponseSource, Number responseTime, String cacheStorageCacheName, String protocol, String alternateProtocolUsage, String securityState, Network.SecurityDetails securityDetails, Boolean isIpProtectionUsed)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Network.ResponsefromJSON(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.Response>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
-
url
public final java.lang.String url
Response URL. This URL can be different from CachedResource.url in case of redirect.
-
status
public final int status
HTTP response status code.
-
statusText
public final java.lang.String statusText
HTTP response status text.
-
headers
-
headersText
public final java.lang.String headersText
HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
OPTIONALDEPRECATED
-
mimeType
public final java.lang.String mimeType
Resource mimeType as determined by the browser.
-
charset
public final java.lang.String charset
Resource charset as determined by the browser (if applicable).
-
requestHeaders
public final JsonValue requestHeaders
Refined HTTP request headers that were actually transmitted over the network.
OPTIONAL
-
requestHeadersText
public final java.lang.String requestHeadersText
HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
OPTIONALDEPRECATED
-
connectionReused
public final boolean connectionReused
Specifies whether physical connection was actually reused for this request.
-
connectionId
public final java.lang.Number connectionId
Physical connection id that was actually used for this request.
-
remoteIPAddress
public final java.lang.String remoteIPAddress
Remote IP address.
OPTIONAL
-
remotePort
public final java.lang.Integer remotePort
Remote port.
OPTIONAL
-
fromDiskCache
public final java.lang.Boolean fromDiskCache
Specifies that the request was served from the disk cache.
OPTIONAL
-
fromServiceWorker
public final java.lang.Boolean fromServiceWorker
Specifies that the request was served from the ServiceWorker.
OPTIONAL
-
fromPrefetchCache
public final java.lang.Boolean fromPrefetchCache
Specifies that the request was served from the prefetch cache.
OPTIONAL
-
fromEarlyHints
public final java.lang.Boolean fromEarlyHints
Specifies that the request was served from the prefetch cache.
OPTIONAL
-
serviceWorkerRouterInfo
public final Network.ServiceWorkerRouterInfo serviceWorkerRouterInfo
Information about how ServiceWorker Static Router API was used. If this field is set withmatchedSourceTypefield, a matching rule is found. If this field is set withoutmatchedSource, no matching rule is found. Otherwise, the API is not used.
OPTIONALEXPERIMENTAL
-
encodedDataLength
public final java.lang.Number encodedDataLength
Total number of bytes received for this request so far.
-
timing
public final Network.ResourceTiming timing
Timing information for the given request.
OPTIONAL
-
serviceWorkerResponseSource
public final java.lang.String serviceWorkerResponseSource
Response source of response from ServiceWorker.
OPTIONALThis particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:
📎Network.ServiceWorkerResponseSource
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = Network.ServiceWorkerResponseSource.enumStrList("serviceWorkerResponseSource"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
responseTime
public final java.lang.Number responseTime
The time at which the returned response was generated.
OPTIONAL
-
cacheStorageCacheName
public final java.lang.String cacheStorageCacheName
Cache Storage Cache Name.
OPTIONAL
-
protocol
public final java.lang.String protocol
Protocol used to fetch this request.
OPTIONAL
-
alternateProtocolUsage
public final java.lang.String alternateProtocolUsage
The reason why Chrome uses a specific transport protocol for HTTP semantics.
OPTIONALEXPERIMENTALThis particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:
📎Network.AlternateProtocolUsage
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = Network.AlternateProtocolUsage.enumStrList("alternateProtocolUsage"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
securityState
public final java.lang.String securityState
Security state of the request resource.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.SecurityState
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = Security.SecurityState.enumStrList("securityState"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
securityDetails
public final Network.SecurityDetails securityDetails
Security details for the request.
OPTIONAL
-
isIpProtectionUsed
public final java.lang.Boolean isIpProtectionUsed
Indicates whether the request was sent through IP Protection proxies. If set to true, the request used the IP Protection privacy feature.
OPTIONALEXPERIMENTAL
-
-
Constructor Detail
-
Response
public Response(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String url, int status, java.lang.String statusText, JsonValue headers, java.lang.String headersText, java.lang.String mimeType, java.lang.String charset, JsonValue requestHeaders, java.lang.String requestHeadersText, boolean connectionReused, java.lang.Number connectionId, java.lang.String remoteIPAddress, java.lang.Integer remotePort, java.lang.Boolean fromDiskCache, java.lang.Boolean fromServiceWorker, java.lang.Boolean fromPrefetchCache, java.lang.Boolean fromEarlyHints, Network.ServiceWorkerRouterInfo serviceWorkerRouterInfo, java.lang.Number encodedDataLength, Network.ResourceTiming timing, java.lang.String serviceWorkerResponseSource, java.lang.Number responseTime, java.lang.String cacheStorageCacheName, java.lang.String protocol, java.lang.String alternateProtocolUsage, java.lang.String securityState, Network.SecurityDetails securityDetails, java.lang.Boolean isIpProtectionUsed)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Network.Response fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Network.Response> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-