
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 Integer
getMaxResults()
If theno-store
directive is set, this HAPI FHIR extention to theCache-Control
header calledmax-results=123
specified the maximum number of results which will be fetched from the database before returning.boolean
isNoCache()
Iftrue<
, adds theno-cache
directive to the request.boolean
isNoStore()
CacheControlDirective
parse(List<String> theValues)
Parses a list ofCache-Control
header valuesCacheControlDirective
setMaxResults(Integer theMaxResults)
If theno-store
directive is set, this HAPI FHIR extention to theCache-Control
header calledmax-results=123
specified the maximum number of results which will be fetched from the database before returning.CacheControlDirective
setNoCache(boolean theNoCache)
Iftrue<
, adds theno-cache
directive to the request.CacheControlDirective
setNoStore(boolean theNoStore)
-
-
-
Constructor Detail
-
CacheControlDirective
public CacheControlDirective()
Constructor
-
-
Method Detail
-
getMaxResults
public Integer getMaxResults()
If theno-store
directive is set, this HAPI FHIR extention to theCache-Control
header calledmax-results=123
specified the maximum number of results which will be fetched from the database before returning.
-
setMaxResults
public CacheControlDirective setMaxResults(Integer theMaxResults)
If theno-store
directive is set, this HAPI FHIR extention to theCache-Control
header calledmax-results=123
specified the maximum number of results which will be fetched from the database before returning.
-
isNoCache
public boolean isNoCache()
Iftrue<
, adds theno-cache
directive 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-cache
directive 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-Control
header values- Parameters:
theValues
- TheCache-Control
header values
-
-