# Uses of Class
org.apache.tapestry5.CookieBuilder

Packages that use CookieBuilder
Package
Description
org.apache.tapestry5
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
org.apache.tapestry5.internal.services
[INTERNAL USE ONLY] internal service classes; API subject to change
org.apache.tapestry5.services
Core services

- ## Uses of CookieBuilder in org.apache.tapestry5

  Methods in org.apache.tapestry5 that return CookieBuilder
  Modifier and Type
  Method
  Description
  `CookieBuilder`
  CookieBuilder.`setComment(String comment)`
  Comments are not supported by version 0 (the default) cookies
  `CookieBuilder`
  CookieBuilder.`setDomain(String domain)`
  Set the domain for the cookie to be created.
  `CookieBuilder`
  CookieBuilder.`setHttpOnly(boolean httpOnly)`
  Set the cookie's httpOnly mode.
  `CookieBuilder`
  CookieBuilder.`setMaxAge(int maxAge)`
  Set how long the cookie should live.
  `CookieBuilder`
  CookieBuilder.`setMaxAge(Duration maxAge)`
  Set how long the cookie should live.
  `CookieBuilder`
  CookieBuilder.`setPath(String path)`
  Set the path for the cookie to be created.
  `CookieBuilder`
  CookieBuilder.`setSecure(boolean secure)`
  Set the cookie's secure mode.
  `CookieBuilder`
  CookieBuilder.`setVersion(int version)`
  Version 0 complies with the original Netscape cookie specification.

- ## Uses of CookieBuilder in org.apache.tapestry5.internal.services

  Methods in org.apache.tapestry5.internal.services that return CookieBuilder
  Modifier and Type
  Method
  Description
  `CookieBuilder`
  CookiesImpl.`getBuilder(String name, String value)`

- ## Uses of CookieBuilder in org.apache.tapestry5.services

  Methods in org.apache.tapestry5.services that return CookieBuilder
  Modifier and Type
  Method
  Description
  `CookieBuilder`
  Cookies.`getBuilder(String name, String value)`
  Returns a `CookieBuilder` to build and write a `Cookie`.