Uses of Interface
org.springframework.boot.web.servlet.server.CookieSameSiteSupplier
Packages that use CookieSameSiteSupplier
-
Uses of CookieSameSiteSupplier in org.springframework.boot.web.servlet.server
Methods in org.springframework.boot.web.servlet.server that return CookieSameSiteSupplierModifier and TypeMethodDescriptionstatic CookieSameSiteSupplier
CookieSameSiteSupplier.of
(Cookie.SameSite sameSite) Return a newCookieSameSiteSupplier
that always returns the givenCookie.SameSite
value.static CookieSameSiteSupplier
CookieSameSiteSupplier.ofLax()
Return a newCookieSameSiteSupplier
that always returnsCookie.SameSite.LAX
.static CookieSameSiteSupplier
CookieSameSiteSupplier.ofNone()
Return a newCookieSameSiteSupplier
that always returnsCookie.SameSite.NONE
.static CookieSameSiteSupplier
CookieSameSiteSupplier.ofStrict()
Return a newCookieSameSiteSupplier
that always returnsCookie.SameSite.STRICT
.default CookieSameSiteSupplier
Limit this supplier so that it's only called if the predicate accepts the Cookie.default CookieSameSiteSupplier
CookieSameSiteSupplier.whenHasName
(String name) Limit this supplier so that it's only called if the Cookie has the given name.default CookieSameSiteSupplier
CookieSameSiteSupplier.whenHasName
(Supplier<String> nameSupplier) Limit this supplier so that it's only called if the Cookie has the given name.default CookieSameSiteSupplier
CookieSameSiteSupplier.whenHasNameMatching
(String regex) Limit this supplier so that it's only called if the Cookie name matches the given regex.default CookieSameSiteSupplier
CookieSameSiteSupplier.whenHasNameMatching
(Pattern pattern) Limit this supplier so that it's only called if the Cookie name matches the givenPattern
.Methods in org.springframework.boot.web.servlet.server that return types with arguments of type CookieSameSiteSupplierMethods in org.springframework.boot.web.servlet.server with parameters of type CookieSameSiteSupplierModifier and TypeMethodDescriptionvoid
AbstractServletWebServerFactory.addCookieSameSiteSuppliers
(CookieSameSiteSupplier... cookieSameSiteSuppliers) void
ConfigurableServletWebServerFactory.addCookieSameSiteSuppliers
(CookieSameSiteSupplier... cookieSameSiteSuppliers) AddCookieSameSiteSuppliers
to those that should be used to obtain theCookie.SameSite
attribute of any added cookie.Method parameters in org.springframework.boot.web.servlet.server with type arguments of type CookieSameSiteSupplierModifier and TypeMethodDescriptionvoid
AbstractServletWebServerFactory.setCookieSameSiteSuppliers
(List<? extends CookieSameSiteSupplier> cookieSameSiteSuppliers) void
ConfigurableServletWebServerFactory.setCookieSameSiteSuppliers
(List<? extends CookieSameSiteSupplier> cookieSameSiteSuppliers) SetsCookieSameSiteSuppliers
that should be used to obtain theCookie.SameSite
attribute of any added cookie.