Interface FHIRPersistenceContext

  • All Known Implementing Classes:
    FHIRPersistenceContextImpl

    public interface FHIRPersistenceContext
    This interface is used to provide request context-related information to the FHIR Server persistence layer.
    • Method Detail

      • getPersistenceEvent

        FHIRPersistenceEvent getPersistenceEvent()
        Returns the FHIRPersistenceEvent instance for the current request. This contains information about the security context, HTTP headers, request URI information, etc.
      • getHistoryContext

        FHIRHistoryContext getHistoryContext()
        Returns the FHIRHistoryContext instance associated with the current request. This will be null if the current request is not a 'history' operation.
      • getSearchContext

        FHIRSearchContext getSearchContext()
        Returns the FHIRSearchContext instance associated with the current request. This will be null if the current request is not a 'search' operation.
      • getIfNoneMatch

        java.lang.Integer getIfNoneMatch()
        Get the encoded ifNoneMatch value which is interpreted as follows:
            null: create-on-update proceeds as normal
               0: create-on-update returns 304 if resource exists, 201 if created
         
        Returns:
        the value from the If-None-Match header in the PUT request
      • getRequestShard

        java.lang.String getRequestShard()
        Get the key used for sharding used by the distributed schema variant. If the tenant is not configured for distribution, the value will be null
        Returns:
        the shard key value specified in the request