Package Torello.Browser
Class Network.CookieParam
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Network.CookieParam
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Network
public static class Network.CookieParam extends BaseType implements java.io.Serializable
Cookie parameter object- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Network.java
- Open New Browser-Tab: Torello/Browser/Network.java
File Size: 9,620 Bytes Line Count: 249 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field String
domain
Cookie domain.Number
expires
Cookie expiration date, session cookie if not set
OPTIONALBoolean
httpOnly
True if cookie is http-only.String
name
Cookie name.String
path
Cookie path.String
priority
Cookie Priority.Boolean
sameParty
True if cookie is SameParty.String
sameSite
Cookie SameSite type.Boolean
secure
True if cookie is secure.Integer
sourcePort
Cookie source port.String
sourceScheme
Cookie source scheme type.String
url
The request-URI to associate with the setting of the cookie.String
value
Cookie value.
-
Constructor Summary
Constructors Constructor Description CookieParam(String name, String value, String url, String domain, String path, Boolean secure, Boolean httpOnly, String sameSite, Number expires, String priority, Boolean sameParty, String sourceScheme, Integer sourcePort)
ConstructorCookieParam(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
-
name
public final java.lang.String name
Cookie name.
-
value
public final java.lang.String value
Cookie value.
-
url
public final java.lang.String url
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
OPTIONAL
-
domain
public final java.lang.String domain
Cookie domain.
OPTIONAL
-
path
public final java.lang.String path
Cookie path.
OPTIONAL
-
secure
public final java.lang.Boolean secure
True if cookie is secure.
OPTIONAL
-
httpOnly
public final java.lang.Boolean httpOnly
True if cookie is http-only.
OPTIONAL
-
sameSite
public final java.lang.String sameSite
Cookie SameSite type.
OPTIONAL
-
expires
public final java.lang.Number expires
Cookie expiration date, session cookie if not set
OPTIONAL
-
priority
public final java.lang.String priority
Cookie Priority.
OPTIONAL
EXPERIMENTAL
-
sameParty
public final java.lang.Boolean sameParty
True if cookie is SameParty.
OPTIONAL
EXPERIMENTAL
-
sourceScheme
public final java.lang.String sourceScheme
Cookie source scheme type.
OPTIONAL
EXPERIMENTAL
-
sourcePort
public final java.lang.Integer sourcePort
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
OPTIONAL
EXPERIMENTAL
-
-
Constructor Detail
-
CookieParam
public CookieParam(java.lang.String name, java.lang.String value, java.lang.String url, java.lang.String domain, java.lang.String path, java.lang.Boolean secure, java.lang.Boolean httpOnly, java.lang.String sameSite, java.lang.Number expires, java.lang.String priority, java.lang.Boolean sameParty, java.lang.String sourceScheme, java.lang.Integer sourcePort)
Constructor- Parameters:
name
- Cookie name.value
- Cookie value.url
- The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
OPTIONALdomain
- Cookie domain.
OPTIONALpath
- Cookie path.
OPTIONALsecure
- True if cookie is secure.
OPTIONALhttpOnly
- True if cookie is http-only.
OPTIONALsameSite
- Cookie SameSite type.
OPTIONALexpires
- Cookie expiration date, session cookie if not set
OPTIONALpriority
- Cookie Priority.
OPTIONAL
EXPERIMENTALsameParty
- True if cookie is SameParty.
OPTIONAL
EXPERIMENTALsourceScheme
- Cookie source scheme type.
OPTIONAL
EXPERIMENTALsourcePort
- Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
OPTIONAL
EXPERIMENTAL
-
CookieParam
public CookieParam(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'CookieParam'
.
-
-
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; CookieParam o = (CookieParam) other; return Objects.equals(this.name, o.name) && Objects.equals(this.value, o.value) && Objects.equals(this.url, o.url) && Objects.equals(this.domain, o.domain) && Objects.equals(this.path, o.path) && Objects.equals(this.secure, o.secure) && Objects.equals(this.httpOnly, o.httpOnly) && Objects.equals(this.sameSite, o.sameSite) && Objects.equals(this.expires, o.expires) && Objects.equals(this.priority, o.priority) && Objects.equals(this.sameParty, o.sameParty) && Objects.equals(this.sourceScheme, o.sourceScheme) && Objects.equals(this.sourcePort, o.sourcePort);
-
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.name) + Objects.hashCode(this.value) + Objects.hashCode(this.url) + Objects.hashCode(this.domain) + Objects.hashCode(this.path) + Objects.hashCode(this.secure) + Objects.hashCode(this.httpOnly) + Objects.hashCode(this.sameSite) + Objects.hashCode(this.expires) + Objects.hashCode(this.priority) + Objects.hashCode(this.sameParty) + Objects.hashCode(this.sourceScheme) + Objects.hashCode(this.sourcePort);
-
-