package innovimax.mixthem.rest.services;

import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

public class TextServiceImpl implements TextService {

    @Override
    public Response addFromText(String text1, String text2) {
        return Response.status(Status.NOT_IMPLEMENTED).build();
    }

    @Override
    public Response altFromText(String type, String text1, String text2) {
        return Response.status(Status.NOT_IMPLEMENTED).build();
    }

    @Override
    public Response randomAltFromText(String text1, String text2, Integer seed) {
        return Response.status(Status.NOT_IMPLEMENTED).build();
    }

    @Override
    public Response joinFromText(String text1, String text2, Integer col1, Integer col2) {
        return Response.status(Status.NOT_IMPLEMENTED).build();
    }

    @Override
    public Response zipFromText(String type, String text1, String text2, String sep) {
        return Response.status(Status.NOT_IMPLEMENTED).build();
    }
}

@@ -35,16 +35,124 @@
 vices;%0A%0A
+import innovimax.mixthem.rest.request.CheckFactory;%0Aimport innovimax.mixthem.rest.request.TextParamsCheck;%0A%0A
 import j
@@ -282,79 +282,268 @@
     
-@Override%0A    public Response addFromText(String text1, String text2) %7B
+private final TextParamsCheck check = CheckFactory.getTextParamsCheck();%0A%0A    @Override%0A    public Response addFromText(String text1, String text2) %7B%0A        if (!check.addFromText(text1, text2)) %7B%0A            return check.getErrorResponse();%0A        %7D        
 %0A   
@@ -691,32 +691,150 @@
 String text2) %7B%0A
+        if (!check.altFromText(type, text1, text2)) %7B%0A            return check.getErrorResponse();        %0A        %7D %0A
         return R
@@ -980,24 +980,140 @@
 ger seed) %7B%0A
+        if (!check.randomAltFromText(text1, text2, seed)) %7B%0A            return check.getErrorResponse();%0A        %7D %0A
         retu
@@ -1272,24 +1272,141 @@
 ger col2) %7B%0A
+        if (!check.joinFromText(text1, text2, col1, col2)) %7B%0A            return check.getErrorResponse();%0A        %7D %0A
         retu
@@ -1561,24 +1561,139 @@
 ring sep) %7B%0A
+        if (!check.zipFromText(type, text1, text2, sep)) %7B%0A            return check.getErrorResponse();%0A        %7D %0A
         retu

Update TextServiceImpl.java