com.ibm.fhir.server.rest.FHIRRestInteractionValidationResponse Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.server.rest;
import com.ibm.fhir.model.resource.Bundle.Entry;
/**
* Captures the fact that a particular entry failed validation.
*/
public class FHIRRestInteractionValidationResponse extends FHIRRestInteractionResource {
/**
* Public constructor
*
* @param entryIndex
* @param validationResponseEntry
*/
public FHIRRestInteractionValidationResponse(int entryIndex, Entry validationResponseEntry, String requestDescription, long initialTime) {
super(entryIndex, null, null, validationResponseEntry, requestDescription, null, initialTime);
}
@Override
public void accept(FHIRRestInteractionVisitor visitor) throws Exception {
visitor.validationResponse(getEntryIndex(), getValidationResponseEntry(), getRequestDescription(), getInitialTime());
}
}