Package ca.uhn.fhir.jpa.binstore
Class BinaryAccessProvider
java.lang.Object
ca.uhn.fhir.jpa.binstore.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 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, javax.servlet.http.HttpServletRequest theServletRequest, javax.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, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse) $binary-access-writevoid
replaceDataWithExtension
(ca.uhn.fhir.jpa.binstore.IBinaryTarget theTarget, String theBlobId) void
setBinaryStorageSvcForUnitTest
(IBinaryStorageSvc theBinaryStorageSvc) void
setDaoRegistryForUnitTest
(ca.uhn.fhir.jpa.api.dao.DaoRegistry theDaoRegistry) void
setFhirContextForUnitTest
(ca.uhn.fhir.context.FhirContext theCtx) void
setTargetAttachmentIdForUnitTest
(Boolean theTargetAttachmentIdForTest) Optional<ca.uhn.fhir.jpa.binstore.IBinaryTarget>
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, 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
-
setBinaryStorageSvcForUnitTest
-
setFhirContextForUnitTest
-
setTargetAttachmentIdForUnitTest
-