Package rife.test

Class MockCookie

All Implemented Interfaces:
Serializable, Cloneable

public class MockCookie extends Cookie
Wraps a Cookie by tracking the creation time and allowing max-age expiration to be evaluated.
Since:
1.0
See Also:
  • Constructor Details

    • MockCookie

      public MockCookie(String name, String value)
      Creates a new cookie with the provided name and value
      Parameters:
      name - the name of the cookie
      value - the value of the cookie
      Since:
      1.0
      See Also:
    • MockCookie

      public MockCookie(Cookie cookie)
      Creates a new cookie with the same values as a standard Cookie.
      Parameters:
      cookie - the cookie that will provide all the values
      Since:
      1.0
      See Also: