Class Network.Cookie

    • 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
      • sameSite

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String sameSite
        Cookie SameSite type.
        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:

        📎 Network.CookieSameSite


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

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String priority
        Cookie Priority
        EXPERIMENTAL

        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.CookiePriority


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

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String sourceScheme
        Cookie source scheme type.
        EXPERIMENTAL

        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.CookieSourceScheme


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

        🡅  🡇     🗕  🗗  🗖
        public final int 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.
        EXPERIMENTAL
    • Constructor Detail

      • Cookie

        🡅  🡇     🗕  🗗  🗖
        public Cookie​(ReadOnlyList<java.lang.Boolean> isPresent,
                      java.lang.String name,
                      java.lang.String value,
                      java.lang.String domain,
                      java.lang.String path,
                      java.lang.Number expires,
                      int size,
                      boolean httpOnly,
                      boolean secure,
                      boolean session,
                      java.lang.String sameSite,
                      java.lang.String priority,
                      boolean sameParty,
                      java.lang.String sourceScheme,
                      int sourcePort,
                      Network.CookiePartitionKey partitionKey,
                      java.lang.Boolean partitionKeyOpaque)
        Constructor. Please review this class' fields for documentation.