Class CookieHeaderDelegate
- java.lang.Object
-
- org.jboss.resteasy.plugins.delegates.CookieHeaderDelegate
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<Cookie>
public class CookieHeaderDelegate extends Object implements RuntimeDelegate.HeaderDelegate<Cookie>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static CookieHeaderDelegateINSTANCE
-
Constructor Summary
Constructors Constructor Description CookieHeaderDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CookiefromString(String value)Parse the supplied value and create an instance ofT.StringtoString(Cookie value)Convert the supplied value to a String.
-
-
-
Field Detail
-
INSTANCE
public static final CookieHeaderDelegate INSTANCE
-
-
Method Detail
-
fromString
public Cookie fromString(String value) throws IllegalArgumentException
Description copied from interface:RuntimeDelegate.HeaderDelegateParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<Cookie>- Parameters:
value- the string value.- Returns:
- the newly created instance of
T. - Throws:
IllegalArgumentException- if the supplied string cannot be parsed or isnull.
-
toString
public String toString(Cookie value)
Description copied from interface:RuntimeDelegate.HeaderDelegateConvert the supplied value to a String.- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<Cookie>- Parameters:
value- the value of typeT.- Returns:
- a String representation of the value.
-
-