Class BinaryAccessProvider

java.lang.Object
ca.uhn.fhir.jpa.binstore.BinaryAccessProvider

public class BinaryAccessProvider extends Object
This plain provider class can be registered with a JPA RestfulServer to provide the $binary-access-read and $binary-access-write operations that can be used to access attachment data as a raw binary.
  • Constructor Details

  • Method Details

    • binaryAccessRead

      public void binaryAccessRead(org.hl7.fhir.instance.model.api.IIdType theResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> thePath, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse) throws IOException
      $binary-access-read
      Throws:
      IOException
    • binaryAccessWrite

      public org.hl7.fhir.instance.model.api.IBaseResource binaryAccessWrite(org.hl7.fhir.instance.model.api.IIdType theResourceId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> thePath, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse) throws IOException
      $binary-access-write
      Throws:
      IOException
    • replaceDataWithExtension

      public void replaceDataWithExtension(ca.uhn.fhir.jpa.binstore.IBinaryTarget theTarget, String theBlobId)
    • toBinaryTarget

      public Optional<ca.uhn.fhir.jpa.binstore.IBinaryTarget> toBinaryTarget(org.hl7.fhir.instance.model.api.IBase theElement)
    • setDaoRegistryForUnitTest

      public void setDaoRegistryForUnitTest(ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry)
    • setBinaryStorageSvcForUnitTest

      public void setBinaryStorageSvcForUnitTest(IBinaryStorageSvc theBinaryStorageSvc)
    • setFhirContextForUnitTest

      public void setFhirContextForUnitTest(ca.uhn.fhir.context.FhirContext theCtx)
    • setTargetAttachmentIdForUnitTest

      public void setTargetAttachmentIdForUnitTest(Boolean theTargetAttachmentIdForTest)