Class CookieUtil


  • public class CookieUtil
    extends Object
    • Constructor Detail

      • CookieUtil

        public CookieUtil()
    • Method Detail

      • valueOf

        public static <S extends jakarta.ws.rs.core.Cookie> S valueOf​(Class<S> clazz,
                                                                      String value)
        Test utility to replace deprecated method Cookie.valueOf(String).
        Parameters:
        clazz - the type of cookie you want to create
        value - the string value of the cookie
        Returns:
        the newly create cookie
      • toString

        public static <S extends jakarta.ws.rs.core.Cookie> String toString​(Class<S> clazz,
                                                                            S value)
        Test utility to replace deprecated method Cookie.toString().
        Parameters:
        clazz - the type of cookie you being passed in
        value - the cookie
        Returns:
        the string value of the cookie