Package org.jboss.resteasy.utils
Class CookieUtil
- java.lang.Object
-
- org.jboss.resteasy.utils.CookieUtil
-
public class CookieUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description CookieUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <S extends jakarta.ws.rs.core.Cookie>
StringtoString(Class<S> clazz, S value)
Test utility to replace deprecated methodCookie.toString()
.static <S extends jakarta.ws.rs.core.Cookie>
SvalueOf(Class<S> clazz, String value)
Test utility to replace deprecated methodCookie.valueOf(String)
.
-
-
-
Method Detail
-
valueOf
public static <S extends jakarta.ws.rs.core.Cookie> S valueOf(Class<S> clazz, String value)
Test utility to replace deprecated methodCookie.valueOf(String)
.- Parameters:
clazz
- the type of cookie you want to createvalue
- the string value of the cookie- Returns:
- the newly create cookie
-
-