| Package | Description |
|---|---|
| com.github.mjeanroy.junit.servers.client | |
| com.github.mjeanroy.junit.servers.client.impl |
| Modifier and Type | Method and Description |
|---|---|
Cookie |
Cookie.Builder.build()
Create the cookie.
|
static Cookie |
Cookie.cookie(String name,
String value)
Deprecated.
Use
Cookies.cookie(String, String) instead. |
static Cookie |
Cookies.cookie(String name,
String value)
Create cookie with a name and a value, all other parameters will
use the default values:
The webapp path is initialized with
"src/main/webapp"
The path is initialized with "/"
The port is initialized with zero.
The cookie is not secured.
The cookie is not http-only.
The cookie max-age is null.
. |
static Cookie |
Cookie.cookie(String name,
String value,
String domain,
String path,
Long expires,
Long maxAge,
boolean secure,
boolean httpOnly)
Deprecated.
|
static Cookie |
Cookies.cookie(String name,
String value,
String domain,
String path,
Long expires,
Long maxAge,
boolean secure,
boolean httpOnly)
Create cookie.
|
Cookie |
HttpResponse.getCookie(String name)
Get cookie by its name (if cookie is missing,
null is returned). |
static Cookie |
Cookie.read(String rawValue)
Deprecated.
Use
Cookies.read(String) instead. |
static Cookie |
Cookies.read(String rawValue)
Create a cookie from header value.
|
static Cookie |
Cookie.secureCookie(String name,
String value,
String domain,
String path,
Long expires,
Long maxAge)
Deprecated.
|
static Cookie |
Cookies.secureCookie(String name,
String value,
String domain,
String path,
Long expires,
Long maxAge)
Create a secured cookie, it means that cookie will have
secure flag and http only flag set to true.
|
static Cookie |
Cookie.sessionCookie(String name,
String value,
String domain,
String path)
Deprecated.
|
static Cookie |
Cookies.sessionCookie(String name,
String value,
String domain,
String path)
Create a session cookie, it means that cookie will have
secure flag and http only flag set to true and expires / max age values
are set to zero.
|
| Modifier and Type | Method and Description |
|---|---|
List<Cookie> |
HttpResponse.getCookies()
Get all cookies sent by server.
|
List<Cookie> |
HttpClientConfiguration.getDefaultCookies()
Get
HttpClientConfiguration.defaultCookies (non-modifiable list). |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.addCookie(Cookie cookie)
Add cookie to http request.
|
HttpClientConfiguration.Builder |
HttpClientConfiguration.Builder.addDefaultCookie(Cookie cookie)
Add new default cookie.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Cookies.serialize(Iterable<Cookie> cookies)
Serialize cookies as a string that is ready to be sent to a server over an HTTP
request (a.k.a value of
Cookie header). |
| Modifier and Type | Field and Description |
|---|---|
protected List<Cookie> |
AbstractHttpRequest.cookies
Cookie elements.
|
| Modifier and Type | Method and Description |
|---|---|
Cookie |
AbstractHttpResponse.getCookie(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<Cookie> |
AbstractHttpResponse.getCookies() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
AbstractHttpRequest.addCookie(Cookie cookie) |
Copyright © 2018. All rights reserved.