Class CacheConditionDirectives
- Direct Known Subclasses:
- CodingDirectives
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionWraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232conditional(DateTime lastModified, Supplier<Route> inner) Wraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232conditional(EntityTag eTag, Supplier<Route> inner) Wraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232conditional(EntityTag eTag, DateTime lastModified, Supplier<Route> inner) Wraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232Methods inherited from class org.apache.pekko.http.javadsl.server.directives.BasicDirectivescancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettings
- 
Constructor Details- 
CacheConditionDirectivespublic CacheConditionDirectives()
 
- 
- 
Method Details- 
conditionalWraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232In 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 thewithRangeSupport(...)directive, i.e.withRangeSupport(...)must be on a deeper level in your route structure in order to function correctly.- Parameters:
- eTag- (undocumented)
- inner- (undocumented)
- Returns:
- (undocumented)
 
- 
conditionalWraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232In 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 thewithRangeSupport(...)directive, i.e.withRangeSupport(...)must be on a deeper level in your route structure in order to function correctly.- Parameters:
- lastModified- (undocumented)
- inner- (undocumented)
- Returns:
- (undocumented)
 
- 
conditionalWraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232In 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 thewithRangeSupport(...)directive, i.e.withRangeSupport(...)must be on a deeper level in your route structure in order to function correctly.- Parameters:
- eTag- (undocumented)
- lastModified- (undocumented)
- inner- (undocumented)
- Returns:
- (undocumented)
 
- 
conditionalpublic Route conditional(Optional<EntityTag> eTag, Optional<DateTime> lastModified, Supplier<Route> inner) Wraps its inner route with support for Conditional Requests as defined by http://tools.ietf.org/html/rfc7232In 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 thewithRangeSupport(...)directive, i.e.withRangeSupport(...)must be on a deeper level in your route structure in order to function correctly.- Parameters:
- eTag- (undocumented)
- lastModified- (undocumented)
- inner- (undocumented)
- Returns:
- (undocumented)
 
 
-