@@ -0,0 +1,1436 @@
+package innovimax.mixthem.rest.request;%0A%0Aimport innovimax.mixthem.rest.ErrorResponse;%0A%0Aimport javax.ws.rs.core.Response;%0A%0Aimport org.glassfish.jersey.media.multipart.FormDataContentDisposition;%0A%0Apublic abstract class AbstractParamsCheck %7B%0A%0A    protected ErrorResponse error = null;%0A%0A    public Response getErrorResponse() %7B        %0A        return Response.status(this.error.getCode()).entity(this.error).build();            %0A    %7D%0A%0A    protected boolean checkTextMissing(String text) %7B%0A        if (text == null %7C%7C text.trim().equals(%22%22)) %7B%0A            this.error = RequestErrorResponse.createMissingParamTextError();%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A    protected boolean checkFileMissing(FormDataContentDisposition fileDetail) %7B     %0A        if (fileDetail.getFileName().equals(%22%22)) %7B%0A            this.error = RequestErrorResponse.createMissingParamFileError();%0A            return false;%0A        %7D      %0A        return true;%0A    %7D%0A%0A    protected boolean checkAlternateMode(String mode) %7B%0A        if (!AlternateMode.accept(mode)) %7B%0A            this.error = RequestErrorResponse.createWrongParamAltModeError();%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A    protected boolean checkZipMode(String mode) %7B%0A        if (!ZipMode.accept(mode)) %7B%0A            this.error = RequestErrorResponse.createWrongParamZipModeError();%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A%7D%0A

Create AbstractParamsCheck.java