/*******************************************************************************
 * Copyright 2019 2Fi Business Solutions Ltd.
 *
 * This code is part of the Core project.
 *
 * This code is copyrighted. Under no circumstances should any party, people,
 * or organization should redistribute any portions of this code in any form,
 * either verbatim or through electronic media, to any third parties, unless
 * under explicit written permission by 2Fi Business Solutions Ltd.
 ******************************************************************************/
package com.ffii.core.web.view.jasperreports;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView;
import org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView;

/**
 *
 * <p>
 * The default mappings for the format lookup are:
 *
 * <p>
 * <ul>
 * <li>{@code pdf} - {@code JasperReportsPdfView}</li>
 * <li>{@code docx} - {@code JasperReportsDocxView}</li>
 * </ul>
 *
 */
public class JasperReportsMultiFormatView extends org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView {

	public JasperReportsMultiFormatView() {
		Map<String, Class<? extends AbstractJasperReportsView>> formatMappings = new HashMap<String, Class<? extends AbstractJasperReportsView>>(1);
		formatMappings.put("pdf", JasperReportsPdfView.class);
		// formatMappings.put("docx", JasperReportsDocxView.class);
		setFormatMappings(formatMappings);
	}
}
