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 tonull
withpath(String)
- Parameters:
name
- the name of theCookie
value
- the value of theCookie
- Since:
- 1.0
-
-
Method Details
-
cookie
Returns theCookie
- Returns:
- the
Cookie
instance that being built - Since:
- 1.0
-
domain
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
maxAge
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
path
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
secure
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
value
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
httpOnly
- Returns:
- the
CookieBuilder
instance - Since:
- 1.0
-
attribute
- Returns:
- the
CookieBuilder
instance - Since:
- 1.8.0
-