Class Cookie.Builder

  • Enclosing class:
    Cookie

    public static class Cookie.Builder
    extends Cookie.AbstractCookieBuilder<Cookie.Builder>
    JAX-RS Cookie builder class.

    Cookie builder provides methods that let you conveniently configure and subsequently build a new Cookie instance.

    For example:
     Cookie cookie = new Cookie.Builder("name")
             .path("/")
             .domain("domain.com")
             .build();
     
    Since:
    3.1