Class/Object

com.typesafe.play.cachecontrol

ResponseCachingCalculator

Related Docs: object ResponseCachingCalculator | package cachecontrol

Permalink

class ResponseCachingCalculator extends AnyRef

Decides whether this response from an origin server should be stored in cached or not.

https://tools.ietf.org/html/rfc7234#section-3

Source
ResponseCachingCalculator.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseCachingCalculator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResponseCachingCalculator(cache: Cache)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def containsAuthorizationHeader(request: CacheRequest): Boolean

    Permalink

    Returns true if the request contains an Authorization header, false otherwise.

    Returns true if the request contains an Authorization header, false otherwise.

    Attributes
    protected
  7. def containsCachableExtension(response: OriginResponse): Boolean

    Permalink
    Attributes
    protected
  8. def containsExpiresHeader(response: OriginResponse): Boolean

    Permalink

    Returns true if the response contains an expires header, false otherwise.

    Returns true if the response contains an expires header, false otherwise.

    Attributes
    protected
  9. def containsIncompatibleAuthorizationInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Permalink

    "the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"

    "the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"

    Attributes
    protected
  10. def containsMaxAgeDirective(response: OriginResponse): Boolean

    Permalink
    Attributes
    protected
  11. def containsMustRevalidateDirective(response: OriginResponse): Boolean

    Permalink
    Attributes
    protected
  12. def containsNoStoreDirective(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Permalink

    "the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"

    "the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"

    Attributes
    protected
  13. def containsPrivateResponseDirectiveInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Permalink

    "the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"

    "the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"

    Attributes
    protected
  14. def containsPublicDirective(response: OriginResponse): Boolean

    Permalink
    Attributes
    protected
  15. def containsSMaxAgeDirective(response: OriginResponse): Boolean

    Permalink
    Attributes
    protected
  16. def directiveAllowsAuthorization(response: OriginResponse): Boolean

    Permalink

    https://tools.ietf.org/html/rfc7234#section-3.2

    https://tools.ietf.org/html/rfc7234#section-3.2

    "must-revalidate, public, and s-maxage" allow an authorization header.

    Attributes
    protected
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def ineligibleResponseCode(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Permalink

    Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.

    Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.

    Attributes
    protected
  23. def isCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction

    Permalink

    Returns an action indicating whether the request should be cached or not.

  24. def isCacheableExtension(extension: CacheDirectiveExtension): Boolean

    Permalink

    Returns true if this is an extension that allows it to be cached.

    Returns true if this is an extension that allows it to be cached.

    https://tools.ietf.org/html/rfc7234#section-5.2.3

    Attributes
    protected
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def notCacheableMethod(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Permalink

    Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.

    Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.

    Attributes
    protected
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def responseIsCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction

    Permalink

    Returns true if the response is cacheable.

    Returns true if the response is cacheable.

    https://tools.ietf.org/html/rfc7234#section-3

    Attributes
    protected
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped