Package Torello.Browser
Class Page.Frame
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Page.Frame
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Page
public static class Page.Frame extends BaseType implements java.io.Serializable
Information about the Frame on the page.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Page.java
- Open New Browser-Tab: Torello/Browser/Page.java
File Size: 12,171 Bytes Line Count: 256 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Page.AdFrameStatus
adFrameStatus
Indicates whether this frame was tagged as an ad and why.String
crossOriginIsolatedContextType
Indicates whether this is a cross origin isolated context.String
domainAndRegistry
Frame document's registered domain, taking the public suffixes list into account.String[]
gatedAPIFeatures
Indicated which gated APIs / features are available.String
id
Frame unique identifier.String
loaderId
Identifier of the loader associated with this frame.String
mimeType
Frame document's mimeType as determined by the browser.String
name
Frame's name as specified in the tag.String
parentId
Parent frame identifier.String
secureContextType
Indicates whether the main document is a secure context and explains why that is the case.String
securityOrigin
Frame document's security origin.String
unreachableUrl
If the frame failed to load, this contains the URL that could not be loaded.String
url
Frame document's URL without fragment.String
urlFragment
Frame document's URL fragment including the '#'.
-
Constructor Summary
Constructors Constructor Description Frame(String id, String parentId, String loaderId, String name, String url, String urlFragment, String domainAndRegistry, String securityOrigin, String mimeType, String unreachableUrl, Page.AdFrameStatus adFrameStatus, String secureContextType, String crossOriginIsolatedContextType, String[] gatedAPIFeatures)
ConstructorFrame(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
id
public final java.lang.String id
Frame unique identifier.
-
parentId
public final java.lang.String parentId
Parent frame identifier.
OPTIONAL
-
loaderId
public final java.lang.String loaderId
Identifier of the loader associated with this frame.
-
name
public final java.lang.String name
Frame's name as specified in the tag.
OPTIONAL
-
url
public final java.lang.String url
Frame document's URL without fragment.
-
urlFragment
public final java.lang.String urlFragment
Frame document's URL fragment including the '#'.
OPTIONAL
EXPERIMENTAL
-
domainAndRegistry
public final java.lang.String domainAndRegistry
Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -> "google.com" http://a.b.co.uk/file.html -> "b.co.uk"
EXPERIMENTAL
-
securityOrigin
public final java.lang.String securityOrigin
Frame document's security origin.
-
mimeType
public final java.lang.String mimeType
Frame document's mimeType as determined by the browser.
-
unreachableUrl
public final java.lang.String unreachableUrl
If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
OPTIONAL
EXPERIMENTAL
-
adFrameStatus
public final Page.AdFrameStatus adFrameStatus
Indicates whether this frame was tagged as an ad and why.
OPTIONAL
EXPERIMENTAL
-
secureContextType
public final java.lang.String secureContextType
Indicates whether the main document is a secure context and explains why that is the case.
EXPERIMENTAL
-
crossOriginIsolatedContextType
public final java.lang.String crossOriginIsolatedContextType
Indicates whether this is a cross origin isolated context.
EXPERIMENTAL
-
gatedAPIFeatures
public final java.lang.String[] gatedAPIFeatures
Indicated which gated APIs / features are available.
EXPERIMENTAL
-
-
Constructor Detail
-
Frame
public Frame(java.lang.String id, java.lang.String parentId, java.lang.String loaderId, java.lang.String name, java.lang.String url, java.lang.String urlFragment, java.lang.String domainAndRegistry, java.lang.String securityOrigin, java.lang.String mimeType, java.lang.String unreachableUrl, Page.AdFrameStatus adFrameStatus, java.lang.String secureContextType, java.lang.String crossOriginIsolatedContextType, java.lang.String[] gatedAPIFeatures)
Constructor- Parameters:
id
- Frame unique identifier.parentId
- Parent frame identifier.
OPTIONALloaderId
- Identifier of the loader associated with this frame.name
- Frame's name as specified in the tag.
OPTIONALurl
- Frame document's URL without fragment.urlFragment
- Frame document's URL fragment including the '#'.
OPTIONAL
EXPERIMENTALdomainAndRegistry
- Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -> "google.com" http://a.b.co.uk/file.html -> "b.co.uk"
EXPERIMENTALsecurityOrigin
- Frame document's security origin.mimeType
- Frame document's mimeType as determined by the browser.unreachableUrl
- If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
OPTIONAL
EXPERIMENTALadFrameStatus
- Indicates whether this frame was tagged as an ad and why.
OPTIONAL
EXPERIMENTALsecureContextType
- Indicates whether the main document is a secure context and explains why that is the case.
EXPERIMENTALcrossOriginIsolatedContextType
- Indicates whether this is a cross origin isolated context.
EXPERIMENTALgatedAPIFeatures
- Indicated which gated APIs / features are available.
EXPERIMENTAL
-
Frame
public Frame(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'Frame'
.
-
-
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 aJsonObject
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 positionTRUE
.
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...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; Frame o = (Frame) other; return Objects.equals(this.id, o.id) && Objects.equals(this.parentId, o.parentId) && Objects.equals(this.loaderId, o.loaderId) && Objects.equals(this.name, o.name) && Objects.equals(this.url, o.url) && Objects.equals(this.urlFragment, o.urlFragment) && Objects.equals(this.domainAndRegistry, o.domainAndRegistry) && Objects.equals(this.securityOrigin, o.securityOrigin) && Objects.equals(this.mimeType, o.mimeType) && Objects.equals(this.unreachableUrl, o.unreachableUrl) && Objects.equals(this.adFrameStatus, o.adFrameStatus) && Objects.equals(this.secureContextType, o.secureContextType) && Objects.equals(this.crossOriginIsolatedContextType, o.crossOriginIsolatedContextType) && Arrays.deepEquals(this.gatedAPIFeatures, o.gatedAPIFeatures);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.id) + Objects.hashCode(this.parentId) + Objects.hashCode(this.loaderId) + Objects.hashCode(this.name) + Objects.hashCode(this.url) + Objects.hashCode(this.urlFragment) + Objects.hashCode(this.domainAndRegistry) + Objects.hashCode(this.securityOrigin) + Objects.hashCode(this.mimeType) + Objects.hashCode(this.unreachableUrl) + this.adFrameStatus.hashCode() + Objects.hashCode(this.secureContextType) + Objects.hashCode(this.crossOriginIsolatedContextType) + Arrays.deepHashCode(this.gatedAPIFeatures);
-
-