org.jboss.resteasy.plugins.delegates
Class NewCookieHeaderDelegate

java.lang.Object
  extended by org.jboss.resteasy.plugins.delegates.NewCookieHeaderDelegate
All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate

public class NewCookieHeaderDelegate
extends java.lang.Object
implements RuntimeDelegate.HeaderDelegate

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
NewCookieHeaderDelegate()
           
 
Method Summary
 java.lang.Object fromString(java.lang.String newCookie)
          Parse the supplied value and create an instance of T.
protected  void quote(java.lang.StringBuilder b, java.lang.String value)
           
 java.lang.String toString(java.lang.Object value)
          Convert the supplied value to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewCookieHeaderDelegate

public NewCookieHeaderDelegate()
Method Detail

fromString

public java.lang.Object fromString(java.lang.String newCookie)
                            throws java.lang.IllegalArgumentException
Description copied from interface: RuntimeDelegate.HeaderDelegate
Parse the supplied value and create an instance of T.

Specified by:
fromString in interface RuntimeDelegate.HeaderDelegate
Parameters:
newCookie - the string value
Returns:
the newly created instance of T
Throws:
java.lang.IllegalArgumentException - if the supplied string cannot be parsed or is null

quote

protected void quote(java.lang.StringBuilder b,
                     java.lang.String value)

toString

public java.lang.String toString(java.lang.Object value)
Description copied from interface: RuntimeDelegate.HeaderDelegate
Convert the supplied value to a String.

Specified by:
toString in interface RuntimeDelegate.HeaderDelegate
Parameters:
value - the value of type T
Returns:
a String representation of the value


Copyright © 2009. All Rights Reserved.