Class FHIRRestInteractionVisitorBase

    • Field Detail

      • SC_BAD_REQUEST_STRING

        protected static final String SC_BAD_REQUEST_STRING
      • SC_GONE_STRING

        protected static final String SC_GONE_STRING
      • SC_NOT_FOUND_STRING

        protected static final String SC_NOT_FOUND_STRING
      • SC_ACCEPTED_STRING

        protected static final String SC_ACCEPTED_STRING
      • SC_OK_STRING

        protected static final String SC_OK_STRING
      • SC_PRECONDITION_FAILED_STRING

        protected static final String SC_PRECONDITION_FAILED_STRING
      • localRefMap

        protected final java.util.Map<java.lang.String,​java.lang.String> localRefMap
    • Constructor Detail

      • FHIRRestInteractionVisitorBase

        protected FHIRRestInteractionVisitorBase​(FHIRResourceHelpers helpers,
                                                 java.util.Map<java.lang.String,​java.lang.String> localRefMap,
                                                 Bundle.Entry[] responseBundleEntries)
        Protected constructor
        Parameters:
        helpers -
        localRefMap -
        responseBundleEntries -
    • Method Detail

      • setEntryComplete

        protected void setEntryComplete​(int entryIndex,
                                        Bundle.Entry e,
                                        java.lang.String requestDescription,
                                        long accumulatedTime)
        Set the given entry e in the response bundle and log a bundle entry completion message.
        Parameters:
        entryIndex -
        e -
        requestDescription -
        accumulatedTime -
      • getResponseEntry

        protected Bundle.Entry getResponseEntry​(int entryIndex)
      • addLocalRefMapping

        protected void addLocalRefMapping​(java.lang.String localIdentifier,
                                          Resource resource)
        This method will add a mapping to the local-to-external identifier map if the specified localIdentifier is non-null.
        Parameters:
        localIdentifier - the localIdentifier previously obtained for the resource
        resource - the resource for which an external identifier will be built
      • updateIssuesWithEntryIndexAndThrow

        protected void updateIssuesWithEntryIndexAndThrow​(java.lang.Integer entryIndex,
                                                          FHIROperationException cause)
                                                   throws FHIROperationException
        Wrap the cause with a FHIRRestbundledRequestException and update each issue with the entryIndex before throwing.
        Parameters:
        entryIndex -
        cause -
        Throws:
        FHIROperationException