Interface CookieSameSiteSupplier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CookieSameSiteSupplier
Strategy interface that can be used with ConfigurableServletWebServerFactory implementations in order to supply custom Cookie.SameSite values for specific cookies.

Basic CookieSameSiteSupplier implementations can be constructed using the of... factory methods, typically combined with name matching. For example:

 CookieSameSiteSupplier.ofLax().whenHasName("mycookie");
 

Since:
2.6.0
See Also: