Cookie Builder (#895)

A proposal to use builder pattern much more developer friendly than telescoping constructors in `Cookie` and `NewCookie`.

For example to set a `NewCookie` instance with a name and a `SameSite.LAX` attribute no longer need to do this:

`new NewCookie("name", null, null, null, Cookie.DEFAULT_VERSION, null, DEFAULT_MAX_AGE, null, false, false, SameSite.LAX);`

just do that:

`new NewCookie.Builder("name").sameSite(SameSite.LAX).build();`
7 files changed
tree: 7c848731445a605d512b7eef1447b87623e13b66
  1. .github/
  2. etc/
  3. examples/
  4. jaxrs-api/
  5. jaxrs-spec/
  6. jaxrs-tck/
  7. jersey-tck/
  8. .gitignore
  9. .travis.yml
  10. CONTRIBUTING.md
  11. Jenkinsfile
  12. LICENSE.md
  13. NOTICE.md
  14. pom.xml
  15. README.md
README.md

Jakarta RESTful Web Services Build Status

Jakarta RESTful Web Services provides a specification document, TCK and foundational API to develop web services following the Representational State Transfer (REST) architectural pattern.

Contributions are welcome, please sign the Eclipse Contributor Agreement before submitting PRs: https://www.eclipse.org/contribute/cla

Project page: https://projects.eclipse.org/projects/ee4j.jaxrs

Mailinglist: https://accounts.eclipse.org/mailing-list/jaxrs-dev