c
org.playframework.cachecontrol
ResponseSelectionCalculator
Companion object ResponseSelectionCalculator
class ResponseSelectionCalculator extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- ResponseSelectionCalculator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val mostRecentOrdering: Ordering[StoredResponse]
- def selectResponse(request: CacheRequest, responses: Seq[StoredResponse]): ResponseSelectionAction
Returns the action to take based off the available stored responses.
- def toDate(r: StoredResponse): ZonedDateTime
This class looks through the available responses, and provides an action -- either selecting a response, or rejecting with either a timeout or forward to origin. The cache's containsMatchingHeaders method is called in the case where the response has secondary keys (defined with Vary) that must be matched.