com.ibm.fhir.server.rest.FHIRRestInteractionHistory 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;
/**
* Represents a FHIR REST HISTORY read interaction
*/
public class FHIRRestInteractionHistory extends FHIRRestInteractionBase {
private final String type;
private final String id;
private final MultivaluedMap queryParameters;
private final String requestUri;
/**
* Public constructor
*
* @param entryIndex
* @param requestDescription
* @param requestURL
* @param type
* @param id
* @param queryParameters
* @param requestUri
*/
public FHIRRestInteractionHistory(int entryIndex, String requestDescription, FHIRUrlParser requestURL,
String type, String id, MultivaluedMap queryParameters, String requestUri) {
super(entryIndex, requestDescription, requestURL);
this.type = type;
this.id = id;
this.queryParameters = queryParameters;
this.requestUri = requestUri;
}
@Override
public void process(FHIRRestInteractionVisitor visitor) throws Exception {
visitor.doHistory(getEntryIndex(), getRequestDescription(), getRequestURL(), getAccumulatedTime(), type, id,
queryParameters, requestUri);
}
}