ehcache

net.sf.ehcache.constructs.web
Class SerializableCookie

java.lang.Object
  extended by net.sf.ehcache.constructs.web.SerializableCookie
All Implemented Interfaces:
java.io.Serializable

public class SerializableCookie
extends java.lang.Object
implements java.io.Serializable

A serializable cookie which wraps Cookie. This gets around a NotSerializable error with Cookie when non memory stores are used.

Version:
$Id: SerializableCookie.java 519 2007-07-27 07:11:45Z gregluck $
Author:
Adam Murdoch
See Also:
Serialized Form

Constructor Summary
SerializableCookie(javax.servlet.http.Cookie cookie)
          Creates a cookie.
 
Method Summary
 javax.servlet.http.Cookie toCookie()
          Builds a Cookie object from this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableCookie

public SerializableCookie(javax.servlet.http.Cookie cookie)
Creates a cookie.

Method Detail

toCookie

public javax.servlet.http.Cookie toCookie()
Builds a Cookie object from this object.


ehcache