package com.capgemini.reports.r22;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;

import com.capgemini.reports.common.AbstractSubmitServletForItemRevision;
import com.capgemini.reports.definition.r22report.ExecutionR22;

/**
 * This class receives demands to perform a R22 report.<br>
 * It prepares the data and creates the appropriate {@link ExecutionR22} instance that will carry out the job.
 */
@WebServlet("/report_r22/submit")
public class SubmitServletR22 extends AbstractSubmitServletForItemRevision<ExecutionR22> {

    private static final long serialVersionUID = 3870992146042536379L;

    @Override
    protected ExecutionR22 prepareReport(final String itemId, final String itemRev, final HttpServletRequest request) {
       return new ExecutionR22(itemId, itemRev);
    }
}
