Class CookieUtil

java.lang.Object
org.jboss.resteasy.utils.CookieUtil

public class CookieUtil extends Object
  • Constructor Details

    • CookieUtil

      public CookieUtil()
  • Method Details

    • 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