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