public class YokeCookie
extends java.lang.Object
implements io.netty.handler.codec.http.Cookie
Constructor and Description |
---|
YokeCookie(io.netty.handler.codec.http.Cookie nettyCookie,
javax.crypto.Mac hmacSHA256) |
YokeCookie(java.lang.String name,
javax.crypto.Mac hmacSHA256) |
YokeCookie(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(io.netty.handler.codec.http.Cookie o) |
java.lang.String |
getComment() |
java.lang.String |
getCommentUrl() |
java.lang.String |
getDomain() |
long |
getMaxAge() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.util.Set<java.lang.Integer> |
getPorts() |
java.lang.String |
getUnsignedValue() |
java.lang.String |
getValue() |
int |
getVersion() |
boolean |
isDiscard() |
boolean |
isHttpOnly() |
boolean |
isSecure() |
boolean |
isSigned() |
void |
setComment(java.lang.String comment) |
void |
setCommentUrl(java.lang.String commentUrl) |
void |
setDiscard(boolean discard) |
void |
setDomain(java.lang.String domain) |
void |
setHttpOnly(boolean httpOnly) |
void |
setMaxAge(long maxAge) |
void |
setPath(java.lang.String path) |
void |
setPorts(int... ports) |
void |
setPorts(java.lang.Iterable<java.lang.Integer> ports) |
void |
setSecure(boolean secure) |
void |
setValue(java.lang.String value) |
void |
setVersion(int version) |
void |
sign() |
public YokeCookie(io.netty.handler.codec.http.Cookie nettyCookie, javax.crypto.Mac hmacSHA256)
public YokeCookie(java.lang.String name, javax.crypto.Mac hmacSHA256)
public YokeCookie(java.lang.String name, java.lang.String value)
public boolean isSigned()
public void sign()
public java.lang.String getUnsignedValue()
public java.lang.String getValue()
getValue
in interface io.netty.handler.codec.http.Cookie
public void setValue(java.lang.String value)
setValue
in interface io.netty.handler.codec.http.Cookie
public java.lang.String getName()
getName
in interface io.netty.handler.codec.http.Cookie
public java.lang.String getDomain()
getDomain
in interface io.netty.handler.codec.http.Cookie
public void setDomain(java.lang.String domain)
setDomain
in interface io.netty.handler.codec.http.Cookie
public java.lang.String getPath()
getPath
in interface io.netty.handler.codec.http.Cookie
public void setPath(java.lang.String path)
setPath
in interface io.netty.handler.codec.http.Cookie
public java.lang.String getComment()
getComment
in interface io.netty.handler.codec.http.Cookie
public void setComment(java.lang.String comment)
setComment
in interface io.netty.handler.codec.http.Cookie
public long getMaxAge()
getMaxAge
in interface io.netty.handler.codec.http.Cookie
public void setMaxAge(long maxAge)
setMaxAge
in interface io.netty.handler.codec.http.Cookie
public int getVersion()
getVersion
in interface io.netty.handler.codec.http.Cookie
public void setVersion(int version)
setVersion
in interface io.netty.handler.codec.http.Cookie
public boolean isSecure()
isSecure
in interface io.netty.handler.codec.http.Cookie
public void setSecure(boolean secure)
setSecure
in interface io.netty.handler.codec.http.Cookie
public boolean isHttpOnly()
isHttpOnly
in interface io.netty.handler.codec.http.Cookie
public void setHttpOnly(boolean httpOnly)
setHttpOnly
in interface io.netty.handler.codec.http.Cookie
public java.lang.String getCommentUrl()
getCommentUrl
in interface io.netty.handler.codec.http.Cookie
public void setCommentUrl(java.lang.String commentUrl)
setCommentUrl
in interface io.netty.handler.codec.http.Cookie
public boolean isDiscard()
isDiscard
in interface io.netty.handler.codec.http.Cookie
public void setDiscard(boolean discard)
setDiscard
in interface io.netty.handler.codec.http.Cookie
public java.util.Set<java.lang.Integer> getPorts()
getPorts
in interface io.netty.handler.codec.http.Cookie
public void setPorts(int... ports)
setPorts
in interface io.netty.handler.codec.http.Cookie
public void setPorts(java.lang.Iterable<java.lang.Integer> ports)
setPorts
in interface io.netty.handler.codec.http.Cookie
public int compareTo(io.netty.handler.codec.http.Cookie o)
compareTo
in interface java.lang.Comparable<io.netty.handler.codec.http.Cookie>