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
-
Method Summary
Modifier and TypeMethodDescriptionIf 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
Iftrueinvalid input: '<'
, adds theno-cache
directive to the request.boolean
static CacheControlDirective
noCache()
Convenience factory method for a no-cache directivelParses a list ofCache-Control
header valuessetMaxResults
(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.setNoCache
(boolean theNoCache) Iftrueinvalid input: '<'
, adds theno-cache
directive to the request.setNoStore
(boolean theNoStore)
-
Constructor Details
-
CacheControlDirective
public CacheControlDirective()Constructor
-
-
Method Details
-
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
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
Iftrueinvalid input: '<'
, adds theno-cache
directive to the request. This directive indicates that the cache should not be used to serve this request. -
setNoCache
Iftrueinvalid input: '<'
, adds theno-cache
directive to the request. This directive indicates that the cache should not be used to serve this request. -
isNoStore
-
setNoStore
-
parse
Parses a list ofCache-Control
header values- Parameters:
theValues
- TheCache-Control
header values
-
noCache
Convenience factory method for a no-cache directivel
-