Package | Description |
---|---|
org.springframework.boot.autoconfigure.web.servlet |
Auto-configuration for servlet web servers and Spring MVC.
|
org.springframework.boot.web.servlet.server |
Servlet web server abstractions.
|
Modifier and Type | Method and Description |
---|---|
ServletWebServerFactoryCustomizer |
ServletWebServerFactoryAutoConfiguration.servletWebServerFactoryCustomizer(ServerProperties serverProperties,
ObjectProvider<WebListenerRegistrar> webListenerRegistrars,
ObjectProvider<CookieSameSiteSupplier> cookieSameSiteSuppliers) |
Modifier and Type | Method and Description |
---|---|
static CookieSameSiteSupplier |
CookieSameSiteSupplier.of(Cookie.SameSite sameSite)
Return a new
CookieSameSiteSupplier that always returns the given
Cookie.SameSite value. |
static CookieSameSiteSupplier |
CookieSameSiteSupplier.ofLax()
Return a new
CookieSameSiteSupplier that always returns
Cookie.SameSite.LAX . |
static CookieSameSiteSupplier |
CookieSameSiteSupplier.ofNone()
Return a new
CookieSameSiteSupplier that always returns
Cookie.SameSite.NONE . |
static CookieSameSiteSupplier |
CookieSameSiteSupplier.ofStrict()
Return a new
CookieSameSiteSupplier that always returns
Cookie.SameSite.STRICT . |
default CookieSameSiteSupplier |
CookieSameSiteSupplier.when(Predicate<Cookie> predicate)
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(Pattern pattern)
Limit this supplier so that it's only called if the Cookie name matches the given
Pattern . |
default CookieSameSiteSupplier |
CookieSameSiteSupplier.whenHasNameMatching(String regex)
Limit this supplier so that it's only called if the Cookie name matches the given
regex.
|
Modifier and Type | Method and Description |
---|---|
List<CookieSameSiteSupplier> |
AbstractServletWebServerFactory.getCookieSameSiteSuppliers() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractServletWebServerFactory.addCookieSameSiteSuppliers(CookieSameSiteSupplier... cookieSameSiteSuppliers) |
void |
ConfigurableServletWebServerFactory.addCookieSameSiteSuppliers(CookieSameSiteSupplier... cookieSameSiteSuppliers)
Add
CookieSameSiteSuppliers to those that should be
used to obtain the Cookie.SameSite attribute of any added cookie. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractServletWebServerFactory.setCookieSameSiteSuppliers(List<? extends CookieSameSiteSupplier> cookieSameSiteSuppliers) |
void |
ConfigurableServletWebServerFactory.setCookieSameSiteSuppliers(List<? extends CookieSameSiteSupplier> cookieSameSiteSuppliers)
Sets
CookieSameSiteSuppliers that should be used to
obtain the Cookie.SameSite attribute of any added cookie. |