Class Network.CookieParam

    • 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
      • 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
      • 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.
        OPTIONALEXPERIMENTAL

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

        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 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.
        OPTIONALEXPERIMENTAL
    • Constructor Detail

      • CookieParam

        🡅  🡇     🗕  🗗  🗖
        public CookieParam​(ReadOnlyList<java.lang.Boolean> isPresent,
                           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,
                           Network.CookiePartitionKey partitionKey)
        Constructor. Please review this class' fields for documentation.