public class TokenBasedCookie<T> extends Object implements TypeSafeCookie<T>
Constructor and Description |
---|
TokenBasedCookie(DomainResolver domainResolver,
Boolean httpOnly,
int maxAge,
String name,
Boolean secure,
TypeSafeToken<T> token) |
Modifier and Type | Method and Description |
---|---|
void |
clearCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
T |
getCookie(javax.servlet.http.HttpServletRequest request) |
String |
getValue(javax.servlet.http.HttpServletRequest request) |
T |
setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildCookie, configSessionCookie, findCookie
public TokenBasedCookie(DomainResolver domainResolver, Boolean httpOnly, int maxAge, String name, Boolean secure, TypeSafeToken<T> token)
public void clearCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
clearCookie
in interface TypeSafeCookie<T>
public T getCookie(javax.servlet.http.HttpServletRequest request)
getCookie
in interface TypeSafeCookie<T>
public String getValue(javax.servlet.http.HttpServletRequest request)
getValue
in interface TypeSafeCookie<T>
public T setCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, T obj)
setCookie
in interface TypeSafeCookie<T>
Copyright © 2017. All rights reserved.