|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.response.Cookie.Builder
public static class Cookie.Builder
| Constructor Summary | |
|---|---|
Cookie.Builder(String name)
Create a cookie with no value |
|
Cookie.Builder(String name,
String value)
Create a cookie with name and value |
|
| Method Summary | |
|---|---|
Cookie |
build()
Build a Cookie from the specified parameters. |
Cookie.Builder |
setComment(String comment)
Set the comment describing the purpose of this cookie. |
Cookie.Builder |
setDomain(String domain)
Set domain attribute of the cookie. |
Cookie.Builder |
setExpiryDate(Date date)
Set the expiration Date of the cookie. |
Cookie.Builder |
setMaxAge(int maxAge)
Set the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist
until browser shutdown. |
Cookie.Builder |
setPath(String path)
Set the path attribute of the cookie. |
Cookie.Builder |
setSecured(boolean secured)
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL. |
Cookie.Builder |
setVersion(int version)
Sets the version of the cookie protocol this cookie complies with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cookie.Builder(String name)
name - The name of the cookie
public Cookie.Builder(String name,
String value)
name - The name of the cookievalue - the cookie value| Method Detail |
|---|
public Cookie.Builder setComment(String comment)
comment - The comment
public Cookie.Builder setExpiryDate(Date date)
Date of the cookie.
date - The date to set
public Cookie.Builder setDomain(String domain)
domain - The domain
public Cookie.Builder setPath(String path)
path - The path
public Cookie.Builder setMaxAge(int maxAge)
-1 indicating the cookie will persist
until browser shutdown.
public Cookie.Builder setSecured(boolean secured)
secured - true if sectured
public Cookie.Builder setVersion(int version)
version - 0 if the cookie should comply with the original Netscape specification; 1 if the cookie should comply with RFC 2109
public Cookie build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||