Package ca.uhn.fhir.rest.api
Class CacheControlDirective
- java.lang.Object
-
- ca.uhn.fhir.rest.api.CacheControlDirective
-
public class CacheControlDirective extends Object
Parses and stores the value(s) within HTTP Cache-Control headers
-
-
Constructor Summary
Constructors Constructor Description CacheControlDirective()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetMaxResults()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.booleanisNoCache()Iftrue<, adds theno-cachedirective to the request.booleanisNoStore()CacheControlDirectiveparse(List<String> theValues)Parses a list ofCache-Controlheader valuesCacheControlDirectivesetMaxResults(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.CacheControlDirectivesetNoCache(boolean theNoCache)Iftrue<, adds theno-cachedirective to the request.CacheControlDirectivesetNoStore(boolean theNoStore)
-
-
-
Constructor Detail
-
CacheControlDirective
public CacheControlDirective()
Constructor
-
-
Method Detail
-
getMaxResults
public Integer 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
public CacheControlDirective setMaxResults(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.
-
isNoCache
public boolean isNoCache()
Iftrue<, adds theno-cachedirective to the request. This directive indicates that the cache should not be used to serve this request.
-
setNoCache
public CacheControlDirective setNoCache(boolean theNoCache)
Iftrue<, adds theno-cachedirective to the request. This directive indicates that the cache should not be used to serve this request.
-
isNoStore
public boolean isNoStore()
-
setNoStore
public CacheControlDirective setNoStore(boolean theNoStore)
-
parse
public CacheControlDirective parse(List<String> theValues)
Parses a list ofCache-Controlheader values- Parameters:
theValues- TheCache-Controlheader values
-
-