public abstract class CookieDirectives extends CodingDirectives
| Constructor and Description | 
|---|
| CookieDirectives() | 
| Modifier and Type | Method and Description | 
|---|---|
| Route | cookie(java.lang.String name,
      java.util.function.Function<HttpCookiePair,Route> inner)Extracts the  HttpCookiePairwith the given name. | 
| Route | deleteCookie(HttpCookie cookie,
            java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header expiring the given cookie. | 
| Route | deleteCookie(java.lang.Iterable<HttpCookie> cookies,
            java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header expiring the given cookies. | 
| Route | deleteCookie(java.lang.String name,
            java.lang.String domain,
            java.lang.String path,
            java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header expiring the cookie with the given properties. | 
| Route | deleteCookie(java.lang.String name,
            java.lang.String domain,
            java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header expiring the cookie with the given properties. | 
| Route | deleteCookie(java.lang.String name,
            java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header expiring the cookie with the given properties. | 
| Route | optionalCookie(java.lang.String name,
              java.util.function.Function<java.util.Optional<HttpCookiePair>,Route> inner)Extracts the  HttpCookiePairwith the given name as anOption[HttpCookiePair]. | 
| Route | setCookie(HttpCookie cookie,
         java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header with the given cookie. | 
| Route | setCookie(java.lang.Iterable<HttpCookie> cookies,
         java.util.function.Supplier<Route> inner)Adds a  Set-Cookieresponse header with the given cookies. | 
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupportconditional, conditional, conditional, conditionalcancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettingspublic Route cookie(java.lang.String name, java.util.function.Function<HttpCookiePair,Route> inner)
HttpCookiePair with the given name. If the cookie is not present the
 request is rejected with a respective pekko.http.javadsl.server.MissingCookieRejection.name - (undocumented)inner - (undocumented)public Route deleteCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
Set-Cookie response header expiring the given cookie.cookie - (undocumented)inner - (undocumented)public Route deleteCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
Set-Cookie response header expiring the given cookies.cookies - (undocumented)inner - (undocumented)public Route deleteCookie(java.lang.String name, java.util.function.Supplier<Route> inner)
Set-Cookie response header expiring the cookie with the given properties.
 name - Name of the cookie to matchinner - (undocumented)public Route deleteCookie(java.lang.String name, java.lang.String domain, java.util.function.Supplier<Route> inner)
Set-Cookie response header expiring the cookie with the given properties.
 name - Name of the cookie to matchdomain - Domain of the cookie to match, or empty string to match any domaininner - (undocumented)public Route deleteCookie(java.lang.String name, java.lang.String domain, java.lang.String path, java.util.function.Supplier<Route> inner)
Set-Cookie response header expiring the cookie with the given properties.
 name - Name of the cookie to matchdomain - Domain of the cookie to match, or empty string to match any domainpath - Path of the cookie to match, or empty string to match any pathinner - (undocumented)public Route optionalCookie(java.lang.String name, java.util.function.Function<java.util.Optional<HttpCookiePair>,Route> inner)
HttpCookiePair with the given name as an Option[HttpCookiePair].
 If the cookie is not present a value of None is extracted.name - (undocumented)inner - (undocumented)public Route setCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
Set-Cookie response header with the given cookie.cookie - (undocumented)inner - (undocumented)public Route setCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
Set-Cookie response header with the given cookies.cookies - (undocumented)inner - (undocumented)