Class HttpCookie.Builder

java.lang.Object
org.eclipse.jetty.http.HttpCookie.Builder
Enclosing interface:
HttpCookie

public static class HttpCookie.Builder extends Object

A builder for HttpCookie instances.

The typical usage is to use one of the build methods to obtain the builder, and then chain method calls to customize the cookie attributes and finally calling the build() method, for example:


 HttpCookie cookie = HttpCookie.build("name", "value")
     .maxAge(24 * 60 * 60)
     .domain("example.com")
     .path("/")
     .build();
 
See Also: