org.apache.catalina.util

Class CookieTools


public class CookieTools
extends java.lang.Object

Cookie utils - generate cookie header, etc

Authors:
Original Author Unknown
duncan@eng.sun.com

Method Summary

static String
getCookieHeaderName(Cookie cookie)
Return the header name to set the cookie, based on cookie version
static String
getCookieHeaderValue(Cookie cookie)
Deprecated. Use StringBuffer version
static void
getCookieHeaderValue(Cookie cookie, StringBuffer buf)
Return the header value used to set this cookie

Method Details

getCookieHeaderName

public static String getCookieHeaderName(Cookie cookie)
Return the header name to set the cookie, based on cookie version


getCookieHeaderValue

public static String getCookieHeaderValue(Cookie cookie)

Deprecated. Use StringBuffer version

Return the header value used to set this cookie


getCookieHeaderValue

public static void getCookieHeaderValue(Cookie cookie,
                                        StringBuffer buf)
Return the header value used to set this cookie


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.