Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
      $binary-access-read
      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)
      $binary-access-write
      void replaceDataWithExtension​(ca.uhn.fhir.jpa.binstore.IBinaryTarget theTarget, String theBlobId)  
      Optional<ca.uhn.fhir.jpa.binstore.IBinaryTarget> toBinaryTarget​(org.hl7.fhir.instance.model.api.IBase theElement)  
    • Method Detail

      • 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
      • toBinaryTarget

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