public static class Http.CookieBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Http.Cookie |
build() |
Http.CookieBuilder |
withDomain(java.lang.String domain) |
Http.CookieBuilder |
withHttpOnly(boolean httpOnly) |
Http.CookieBuilder |
withMaxAge(java.lang.Integer maxAge) |
Http.CookieBuilder |
withName(java.lang.String name) |
Http.CookieBuilder |
withPath(java.lang.String path) |
Http.CookieBuilder |
withSecure(boolean secure) |
Http.CookieBuilder |
withValue(java.lang.String value) |
public Http.CookieBuilder withName(java.lang.String name)
name
- The name of the cookiepublic Http.CookieBuilder withValue(java.lang.String value)
value
- The value of the cookiepublic Http.CookieBuilder withMaxAge(java.lang.Integer maxAge)
maxAge
- The maxAge of the cookiepublic Http.CookieBuilder withPath(java.lang.String path)
path
- The path of the cookiepublic Http.CookieBuilder withDomain(java.lang.String domain)
domain
- The domain of the cookiepublic Http.CookieBuilder withSecure(boolean secure)
secure
- specify if the cookie is securepublic Http.CookieBuilder withHttpOnly(boolean httpOnly)
httpOnly
- specify if the cookie is httpOnlypublic Http.Cookie build()