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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String newCookie) Parse the supplied value and create an instance ofT.protected voidquote(StringBuilder b, String value) Convert the supplied value to a String.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NewCookieHeaderDelegate
public NewCookieHeaderDelegate()
-
-
Method Details
-
fromString
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
-
toString
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.
-