package com.capgemini.reports.r03;

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

import com.capgemini.reports.common.AbstractSubmitServletForItemRevision;
import com.capgemini.reports.definition.r03report.ExecutionR03;

/**
 * This class receives demands to perform a R03 report.<br>
 * It prepares the data and creates the appropriate {@link ExecutionR03} instance that will carry out the job.
 */
@WebServlet("/report_r03/submit")
public class SubmitServletR03 extends AbstractSubmitServletForItemRevision<ExecutionR03> {
    private static final long serialVersionUID = 3870992146042536379L;

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