public final class ServletCookieAdapter
extends java.lang.Object
implements io.micronaut.http.cookie.Cookie
Cookie
.Constructor and Description |
---|
ServletCookieAdapter(javax.servlet.http.Cookie cookie)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(io.micronaut.http.cookie.Cookie o) |
io.micronaut.http.cookie.Cookie |
domain(java.lang.String domain) |
javax.servlet.http.Cookie |
getCookie() |
java.lang.String |
getDomain() |
long |
getMaxAge() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getValue() |
io.micronaut.http.cookie.Cookie |
httpOnly(boolean httpOnly) |
boolean |
isHttpOnly() |
boolean |
isSecure() |
io.micronaut.http.cookie.Cookie |
maxAge(long maxAge) |
io.micronaut.http.cookie.Cookie |
path(java.lang.String path) |
io.micronaut.http.cookie.Cookie |
secure(boolean secure) |
io.micronaut.http.cookie.Cookie |
value(java.lang.String value) |
public ServletCookieAdapter(javax.servlet.http.Cookie cookie)
cookie
- The servlet cookie to adapt.public javax.servlet.http.Cookie getCookie()
@NonNull public java.lang.String getName()
getName
in interface io.micronaut.http.cookie.Cookie
@NonNull public java.lang.String getValue()
getValue
in interface io.micronaut.http.cookie.Cookie
@Nullable public java.lang.String getDomain()
getDomain
in interface io.micronaut.http.cookie.Cookie
@Nullable public java.lang.String getPath()
getPath
in interface io.micronaut.http.cookie.Cookie
public boolean isHttpOnly()
isHttpOnly
in interface io.micronaut.http.cookie.Cookie
public boolean isSecure()
isSecure
in interface io.micronaut.http.cookie.Cookie
public long getMaxAge()
getMaxAge
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie maxAge(long maxAge)
maxAge
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie value(@NonNull java.lang.String value)
value
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie domain(@Nullable java.lang.String domain)
domain
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie path(@Nullable java.lang.String path)
path
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie secure(boolean secure)
secure
in interface io.micronaut.http.cookie.Cookie
@NonNull public io.micronaut.http.cookie.Cookie httpOnly(boolean httpOnly)
httpOnly
in interface io.micronaut.http.cookie.Cookie
public int compareTo(io.micronaut.http.cookie.Cookie o)
compareTo
in interface java.lang.Comparable<io.micronaut.http.cookie.Cookie>