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 Details

  • Method Details

    • getMaxResults

      If the no-store directive is set, this HAPI FHIR extention to the Cache-Control header called max-results=123 specified the maximum number of results which will be fetched from the database before returning.
    • setMaxResults

      If the no-store directive is set, this HAPI FHIR extention to the Cache-Control header called max-results=123 specified the maximum number of results which will be fetched from the database before returning.
    • isNoCache

      public boolean isNoCache()
      If trueinvalid input: '<', adds the no-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)
      If trueinvalid input: '<', adds the no-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 of Cache-Control header values
      Parameters:
      theValues - The Cache-Control header values
    • noCache

      public static CacheControlDirective noCache()
      Convenience factory method for a no-cache directivel