Package rife.engine
Class CookieBuilder
java.lang.Object
rife.engine.CookieBuilder
Helper class for building a
Cookie.- Since:
- 1.0
- See Also:
-
Constructor Details
-
CookieBuilder
Starts building a newCookie.The path will automatically be set to
"/"since that is the most common cookie usage. If the blank or empty path is needed, it can explicitly be set tonullwithpath(String)- Parameters:
name- the name of theCookievalue- the value of theCookie- Since:
- 1.0
-
-
Method Details
-
cookie
Returns theCookie- Returns:
- the
Cookieinstance that being built - Since:
- 1.0
-
domain
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
maxAge
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
path
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
secure
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
value
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
httpOnly
- Returns:
- the
CookieBuilderinstance - Since:
- 1.0
-
attribute
- Returns:
- the
CookieBuilderinstance - Since:
- 1.8.0
-