public abstract class CacheConditionDirectives extends BasicDirectives
| Constructor and Description |
|---|
CacheConditionDirectives() |
| Modifier and Type | Method and Description |
|---|---|
Route |
conditional(DateTime lastModified,
java.util.function.Supplier<Route> inner)
Wraps its inner route with support for Conditional Requests as defined
by http://tools.ietf.org/html/rfc7232
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6
is implemented by this directive.
|
Route |
conditional(EntityTag eTag,
DateTime lastModified,
java.util.function.Supplier<Route> inner)
Wraps its inner route with support for Conditional Requests as defined
by http://tools.ietf.org/html/rfc7232
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6
is implemented by this directive.
|
Route |
conditional(EntityTag eTag,
java.util.function.Supplier<Route> inner)
Wraps its inner route with support for Conditional Requests as defined
by http://tools.ietf.org/html/rfc7232
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6
is implemented by this directive.
|
Route |
conditional(java.util.Optional<EntityTag> eTag,
java.util.Optional<DateTime> lastModified,
java.util.function.Supplier<Route> inner)
Wraps its inner route with support for Conditional Requests as defined
by http://tools.ietf.org/html/rfc7232
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6
is implemented by this directive.
|
cancelRejection, 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 conditional(EntityTag eTag, java.util.function.Supplier<Route> inner)
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6 is implemented by this directive.
Note: if you want to combine this directive with withRangeSupport(...) you need to put
it on the *outside* of the withRangeSupport(...) directive, i.e. withRangeSupport(...)
must be on a deeper level in your route structure in order to function correctly.
eTag - (undocumented)inner - (undocumented)public Route conditional(DateTime lastModified, java.util.function.Supplier<Route> inner)
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6 is implemented by this directive.
Note: if you want to combine this directive with withRangeSupport(...) you need to put
it on the *outside* of the withRangeSupport(...) directive, i.e. withRangeSupport(...)
must be on a deeper level in your route structure in order to function correctly.
lastModified - (undocumented)inner - (undocumented)public Route conditional(EntityTag eTag, DateTime lastModified, java.util.function.Supplier<Route> inner)
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6 is implemented by this directive.
Note: if you want to combine this directive with withRangeSupport(...) you need to put
it on the *outside* of the withRangeSupport(...) directive, i.e. withRangeSupport(...)
must be on a deeper level in your route structure in order to function correctly.
eTag - (undocumented)lastModified - (undocumented)inner - (undocumented)public Route conditional(java.util.Optional<EntityTag> eTag, java.util.Optional<DateTime> lastModified, java.util.function.Supplier<Route> inner)
In particular the algorithm defined by http://tools.ietf.org/html/rfc7232#section-6 is implemented by this directive.
Note: if you want to combine this directive with withRangeSupport(...) you need to put
it on the *outside* of the withRangeSupport(...) directive, i.e. withRangeSupport(...)
must be on a deeper level in your route structure in order to function correctly.
eTag - (undocumented)lastModified - (undocumented)inner - (undocumented)