/**
  * Convert the supplied value to a String.
  *
  * @param value the value of type <code>T</code>
  * @return a String representation of the value
  * @throws IllegalArgumentException if the supplied object cannot be serialized
  * @see javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate#toString(java.lang.Object)
  */
 public String toString(Cookie jaxRsCookie) {
   return CookieWriter.write(Converter.toRestletCookie(jaxRsCookie));
 }
Example #2
0
 public NettyHttpResponse cookie(Cookie httpCookie) {
   return header(SET_COOKIE_HEADER, CookieWriter.write(httpCookie));
 }