Package io.undertow.server.handlers
Class SameSiteCookieHandler
- java.lang.Object
-
- io.undertow.server.handlers.SameSiteCookieHandler
-
- All Implemented Interfaces:
HttpHandler
public class SameSiteCookieHandler extends Object implements HttpHandler
Handler that will set the SameSite flag to response cookies- Author:
- Richard Opalka
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SameSiteCookieHandler.Builder
-
Constructor Summary
Constructors Constructor Description SameSiteCookieHandler(HttpHandler next, String mode)
SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern)
SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive)
SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive, boolean enableClientChecker, boolean addSecureForNone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.
-
-
-
Constructor Detail
-
SameSiteCookieHandler
public SameSiteCookieHandler(HttpHandler next, String mode)
-
SameSiteCookieHandler
public SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern)
-
SameSiteCookieHandler
public SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive)
-
SameSiteCookieHandler
public SameSiteCookieHandler(HttpHandler next, String mode, String cookiePattern, boolean caseSensitive, boolean enableClientChecker, boolean addSecureForNone)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
-