package org.jboss.resteasy.test.validation.resource;

import jakarta.validation.constraints.Size;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;

@Path("proxy")
public class ValidationComplexProxyResource implements ValidationComplexProxyInterface {
   private static String s;

   @GET
   @Produces("text/plain")
   @Size(min = 2, max = 4)
   public String g() {
      return s;
   }

   @POST
   @Path("{s}")
   public void s(@PathParam("s") String s) {
      ValidationComplexProxyResource.s = s;
   }
}
