Groovy Documentation

grails.plugin.springcache.web
[Groovy] Class CacheHeadersSpec

java.lang.Object
  spock.lang.Specification
      CacheHeadersSpec

@Issue("http://jira.codehaus.org/browse/GRAILSPLUGINS-2616")
class CacheHeadersSpec
extends spock.lang.Specification

Field Summary
private Album album

private RESTClient http

 
Fields inherited from class spock.lang.Specification
_
 
Property Summary
net.sf.ehcache.Ehcache albumControllerCache

SpringcacheService springcacheService

 
Constructor Summary
CacheHeadersSpec()

 
Method Summary
java.lang.Object a 304 is served rather than a cached response if the client has cached the response()

java.lang.Object a cached response's time-to-live is set according to the max-age header if there is one()

java.lang.Object a page is not cached if the response contains a no-cache directive in the cache-control header()

java.lang.Object cache control headers from the original response are served with a cached response()

java.lang.Object cleanup()

java.lang.Object cleanupSpec()

private net.sf.ehcache.Element getCacheElement()

private java.lang.String getCurrentDate()

java.lang.Object setupSpec()

java.lang.Object the cached response is served if the client's cached version does not match()

 
Methods inherited from class spock.lang.Specification
spock.lang.Specification#old(java.lang.Object), spock.lang.Specification#thrown(java.lang.Class), spock.lang.Specification#thrown(), spock.lang.Specification#notThrown(java.lang.Class), spock.lang.Specification#noExceptionThrown(), spock.lang.Specification#Mock(), spock.lang.Specification#Mock(java.lang.Class), spock.lang.Specification#interaction(groovy.lang.Closure), spock.lang.Specification#wait(), spock.lang.Specification#wait(long), spock.lang.Specification#wait(long, int), spock.lang.Specification#equals(java.lang.Object), spock.lang.Specification#toString(), spock.lang.Specification#hashCode(), spock.lang.Specification#getClass(), spock.lang.Specification#notify(), spock.lang.Specification#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

album

@Shared
private Album album


http

private RESTClient http


 
Property Detail

albumControllerCache

@Shared
net.sf.ehcache.Ehcache albumControllerCache


springcacheService

@Shared
SpringcacheService springcacheService


 
Constructor Detail

CacheHeadersSpec

CacheHeadersSpec()


 
Method Detail

a 304 is served rather than a cached response if the client has cached the response

@Unroll("a 304 is served rather than a cached response if the client sends #headers")
java.lang.Object a 304 is served rather than a cached response if the client has cached the response()


a cached response's time-to-live is set according to the max-age header if there is one

java.lang.Object a cached response's time-to-live is set according to the max-age header if there is one()


a page is not cached if the response contains a no-cache directive in the cache-control header

java.lang.Object a page is not cached if the response contains a no-cache directive in the cache-control header()


cache control headers from the original response are served with a cached response

java.lang.Object cache control headers from the original response are served with a cached response()


cleanup

java.lang.Object cleanup()


cleanupSpec

java.lang.Object cleanupSpec()


getCacheElement

private net.sf.ehcache.Element getCacheElement()


getCurrentDate

private java.lang.String getCurrentDate()


setupSpec

java.lang.Object setupSpec()


the cached response is served if the client's cached version does not match

@Unroll("the cached response is served if the client sends #headers")
java.lang.Object the cached response is served if the client's cached version does not match()


 

Groovy Documentation