CookieUtil

  • CookieUtil is a helper class designed to build cookie strings.

  • It provides static methods to generate cookie URLs and cookie values with various parameters.

  • The class inherits methods from the java.lang.Object class.

public final class CookieUtil extends Object

Helper class to build the cookie String from the given fields.

Public Method Summary

static String
getCookieUrl(String domain, Boolean isSecure)
static String
getCookieValue(String name, String value, String domain, String path, Boolean isHttpOnly, Boolean isSecure, Long maxAge)

Inherited Method Summary

Public Methods

public static String getCookieUrl (String domain, Boolean isSecure)

public static String getCookieValue (String name, String value, String domain, String path, Boolean isHttpOnly, Boolean isSecure, Long maxAge)