com.atlassian.seraph.cookie
Class DefaultCookieHandler

java.lang.Object
  extended by com.atlassian.seraph.cookie.DefaultCookieHandler
All Implemented Interfaces:
CookieHandler

Deprecated. replaced by the RememberMeService code

public class DefaultCookieHandler
extends Object
implements CookieHandler


Constructor Summary
DefaultCookieHandler()
          Deprecated.  
 
Method Summary
 javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest request, String name)
          Deprecated. Returns the specified Cookie object, or null if the cookie does not exist.
 String getCookieValue(javax.servlet.http.HttpServletRequest request, String name)
          Deprecated. Returns the value of the specified cookie as a String.
 void invalidateCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String cookieName, String path)
          Deprecated. Invalidate the specified cookie and delete it from the response object.
 javax.servlet.http.Cookie setCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String name, String value, int maxAge, String path)
          Deprecated. Sets a cookie This will also put the cookie in a list of cookies to send with this request's response (so that in case of a redirect occurring down the chain, the first filter will always try to set this cookie again) The cookie secure flag is set if the request is secure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCookieHandler

public DefaultCookieHandler()
Deprecated. 
Method Detail

invalidateCookie

public void invalidateCookie(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             String cookieName,
                             String path)
Deprecated. 
Description copied from interface: CookieHandler
Invalidate the specified cookie and delete it from the response object.

Specified by:
invalidateCookie in interface CookieHandler
response - The HttpServletResponse object, known as "response" in a JSP page.
cookieName - The name of the cookie you want to delete.
path - of the path the cookie you want to delete.

getCookie

public javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest request,
                                           String name)
Deprecated. 
Description copied from interface: CookieHandler
Returns the specified Cookie object, or null if the cookie does not exist.

Specified by:
getCookie in interface CookieHandler
Parameters:
request - The HttpServletRequest object, known as "request" in a JSP page.
name - the name of the cookie.
Returns:
the Cookie object if it exists, otherwise null.

setCookie

public javax.servlet.http.Cookie setCookie(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           String name,
                                           String value,
                                           int maxAge,
                                           String path)
Deprecated. 
Description copied from interface: CookieHandler
Sets a cookie This will also put the cookie in a list of cookies to send with this request's response (so that in case of a redirect occurring down the chain, the first filter will always try to set this cookie again) The cookie secure flag is set if the request is secure.

Specified by:
setCookie in interface CookieHandler

getCookieValue

public String getCookieValue(javax.servlet.http.HttpServletRequest request,
                             String name)
Deprecated. 
Description copied from interface: CookieHandler
Returns the value of the specified cookie as a String. If the cookie does not exist, the method returns null.

Specified by:
getCookieValue in interface CookieHandler
Parameters:
request - the HttpServletRequest object, known as "request" in a JSP page.
name - the name of the cookie
Returns:
the value of the cookie, or null if the cookie does not exist.


Copyright © 2013 Atlassian. All Rights Reserved.