All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.fhir.server.rest.FHIRRestInteractionVRead Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2021
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package com.ibm.fhir.server.rest;

import javax.ws.rs.core.MultivaluedMap;

import com.ibm.fhir.server.util.FHIRUrlParser;

/**
 * Executes a VREAD (version read) operation on the visitor
 */
public class FHIRRestInteractionVRead extends FHIRRestInteractionBase {

    private final String type;
    private final String id;
    private final String versionId;
    private final MultivaluedMap queryParameters;

    /**
     * Public constructor
     *
     * @param entryIndex
     * @param requestDescription
     * @param requestURL
     * @param initialTime
     * @param type
     * @param id
     * @param versionId
     * @param queryParameters
     */
    public FHIRRestInteractionVRead(int entryIndex, String requestDescription, FHIRUrlParser requestURL,
            long initialTime, String type, String id, String versionId, MultivaluedMap queryParameters) {
        super(entryIndex, requestDescription, requestURL, initialTime);
        this.type = type;
        this.id = id;
        this.versionId = versionId;
        this.queryParameters = queryParameters;
    }

    @Override
    public void accept(FHIRRestInteractionVisitor visitor) throws Exception {
        visitor.doVRead(getEntryIndex(), getRequestDescription(), getRequestURL(), getInitialTime(), type, id,
                versionId, queryParameters);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy