| Package | Description |
|---|---|
| org.osgl.http | |
| org.osgl.http.servlet |
| Modifier and Type | Field and Description |
|---|---|
static org.osgl.Lang.F2<H.Cookie,H.Response,Void> |
H.Cookie.F.ADD_TO_RESPONSE |
| Modifier and Type | Method and Description |
|---|---|
H.Cookie |
H.Cookie.comment(String comment) |
H.Cookie |
H.Request.cookie(String name)
Returns cookie by it’s name
|
H.Cookie |
H.Cookie.domain(String domain)
Set the domain of the cookie
|
H.Cookie |
H.Cookie.expires(Date expires) |
static H.Cookie |
H.Cookie.get(String name)
Get a cookie from current context by name
|
H.Cookie |
H.Cookie.httpOnly(boolean httpOnly) |
H.Cookie |
H.Cookie.maxAge(int maxAge)
Set the max age of the cookie in seconds.
|
H.Cookie |
H.Cookie.path(String uri)
Specifies a path for the cookie to which the client should return the cookie.
|
H.Cookie |
H.Cookie.secure(boolean secure)
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
|
H.Cookie |
H.Session.serialize(String sessionKey)
Serialize this session into a cookie.
|
H.Cookie |
H.Flash.serialize(String flashKey)
Serialize this Flash instance into a Cookie.
|
H.Cookie |
H.Cookie.value(String value)
Set a value to a cookie and the return
this cookie |
H.Cookie |
H.Cookie.version(int v)
Sets the version of the cookie protocol that this Cookie complies with.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<H.Cookie> |
H.Cookie.all()
Returns all cookies from current context
|
List<H.Cookie> |
H.Request.cookies()
Returns all cookies of the request in Iterable
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
H.Request._setCookie(String name,
H.Cookie cookie) |
abstract void |
H.Response.addCookie(H.Cookie cookie)
Adds the specified cookie to the response.
|
static H.Flash |
H.Flash.resolve(H.Cookie flashCookie)
Resolve a Flash instance from a cookie.
|
static H.Session |
H.Session.resolve(H.Cookie sessionCookie,
int ttl)
Resolve a Session instance from a session cookie
|
static void |
H.Cookie.set(H.Cookie cookie)
Add a cookie to the current context
|
| Modifier and Type | Class and Description |
|---|---|
class |
ServletCookie
Adapt
Cookie to H.Cookie |
| Modifier and Type | Method and Description |
|---|---|
void |
ServletResponse.addCookie(H.Cookie cookie) |
static javax.servlet.http.Cookie |
ServletCookie.asServletCookie(H.Cookie c) |
Copyright © 2017–2018 OSGL (Open Source General Library). All rights reserved.