Class CookieConfiguration.Builder
java.lang.Object
org.apache.camel.component.platform.http.cookie.CookieConfiguration.Builder
- Enclosing class:
CookieConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets which server can receive cookies.setHttpOnly(boolean httpOnly) Sets whether to prevent client side scripts from accessing created cookies.Sets the maximum cookie age in seconds.Sets the URL path that must exist in the requested URL in order to send the Cookie.Sets whether to prevent the browser from sending cookies along with cross-site requests.setSecure(boolean secure) Sets whether the cookie is only sent to the server with an encrypted request over HTTPS.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setPath
Sets the URL path that must exist in the requested URL in order to send the Cookie. -
setDomain
Sets which server can receive cookies. -
setMaxAge
Sets the maximum cookie age in seconds. -
setSecure
Sets whether the cookie is only sent to the server with an encrypted request over HTTPS. -
setHttpOnly
Sets whether to prevent client side scripts from accessing created cookies. -
setSameSite
Sets whether to prevent the browser from sending cookies along with cross-site requests. -
build
-