
Package ca.uhn.fhir.jpa.binary.provider
Class BinaryAccessProvider
java.lang.Object
ca.uhn.fhir.jpa.binary.provider.BinaryAccessProvider
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHashExtension(IBinaryTarget theTarget, String theHash) voidbinaryAccessRead(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, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) $binary-access-readorg.hl7.fhir.instance.model.api.IBaseResourcebinaryAccessWrite(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, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) $binary-access-writegetBinaryContentHash(byte[] binaryContent) voidreplaceDataWithExtension(IBinaryTarget theTarget, String theBlobId) voidsetBinaryStorageSvcForUnitTest(IBinaryStorageSvc theBinaryStorageSvc) voidsetDaoRegistryForUnitTest(DaoRegistry theDaoRegistry) voidsetFhirContextForUnitTest(ca.uhn.fhir.context.FhirContext theCtx) voidsetTargetAttachmentIdForUnitTest(Boolean theTargetAttachmentIdForTest) toBinaryTarget(org.hl7.fhir.instance.model.api.IBase theElement)
-
Constructor Details
-
BinaryAccessProvider
public BinaryAccessProvider()
-
-
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, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.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, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) throws IOException $binary-access-write- Throws:
IOException
-
getBinaryContentHash
-
replaceDataWithExtension
-
addHashExtension
-
toBinaryTarget
-
setDaoRegistryForUnitTest
-
setBinaryStorageSvcForUnitTest
-
setFhirContextForUnitTest
-
setTargetAttachmentIdForUnitTest
-