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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) $binary-access-readorg.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) $binary-access-writevoid
replaceDataWithExtension
(IBinaryTarget theTarget, String theBlobId) void
setBinaryStorageSvcForUnitTest
(IBinaryStorageSvc theBinaryStorageSvc) void
setDaoRegistryForUnitTest
(DaoRegistry theDaoRegistry) void
setFhirContextForUnitTest
(ca.uhn.fhir.context.FhirContext theCtx) void
setTargetAttachmentIdForUnitTest
(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
-
replaceDataWithExtension
-
toBinaryTarget
-
setDaoRegistryForUnitTest
-
setBinaryStorageSvcForUnitTest
-
setFhirContextForUnitTest
-
setTargetAttachmentIdForUnitTest
-