org.apache.wicket.protocol.http.mock
Class Cookies

java.lang.Object
  extended by org.apache.wicket.protocol.http.mock.Cookies

public final class Cookies
extends Object

A helper class for dealing with cookies


Method Summary
static javax.servlet.http.Cookie copyOf(javax.servlet.http.Cookie cookie)
          Make a copy of the passed cookie.
static boolean isEqual(javax.servlet.http.Cookie c1, javax.servlet.http.Cookie c2)
          Checks whether two cookies are equal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyOf

public static javax.servlet.http.Cookie copyOf(javax.servlet.http.Cookie cookie)
Make a copy of the passed cookie.

Parameters:
cookie - The cookie to copy
Returns:
A copy of the passed cookie. May be null if the argument is null.

isEqual

public static boolean isEqual(javax.servlet.http.Cookie c1,
                              javax.servlet.http.Cookie c2)
Checks whether two cookies are equal. See http://www.ietf.org/rfc/rfc2109.txt, p.4.3.3

Parameters:
c1 - the first cookie
c2 - the second cookie
Returns:
true only if the cookies have the same name, path and domain


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.