
Package ca.uhn.fhir.rest.api
Class CacheControlDirective
java.lang.Object
ca.uhn.fhir.rest.api.CacheControlDirective
Parses and stores the value(s) within HTTP Cache-Control headers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf theno-storedirective is set, this HAPI FHIR extention to theCache-Controlheader calledmax-results=123specified the maximum number of results which will be fetched from the database before returning.booleanIftrue, adds theno-cachedirective to the request.booleanstatic CacheControlDirectivenoCache()Convenience factory method for a no-cache directivelParses a list ofCache-Controlheader valuessetMaxResults(Integer theMaxResults) If theno-storedirective is set, this HAPI FHIR extention to theCache-Controlheader calledmax-results=123specified the maximum number of results which will be fetched from the database before returning.setNoCache(boolean theNoCache) Iftrue, adds theno-cachedirective to the request.setNoStore(boolean theNoStore)
-
Constructor Details
-
CacheControlDirective
public CacheControlDirective()Constructor
-
-
Method Details
-
getMaxResults
If theno-storedirective is set, this HAPI FHIR extention to theCache-Controlheader calledmax-results=123specified the maximum number of results which will be fetched from the database before returning. -
setMaxResults
If theno-storedirective is set, this HAPI FHIR extention to theCache-Controlheader calledmax-results=123specified the maximum number of results which will be fetched from the database before returning. -
isNoCache
Iftrue, adds theno-cachedirective to the request. This directive indicates that the cache should not be used to serve this request. -
setNoCache
Iftrue, adds theno-cachedirective to the request. This directive indicates that the cache should not be used to serve this request. -
isNoStore
-
setNoStore
-
parse
Parses a list ofCache-Controlheader values- Parameters:
theValues- TheCache-Controlheader values
-
noCache
Convenience factory method for a no-cache directivel
-