diff --git a/src/main/java/algoLike/push/AttackerA.java b/src/main/java/algoLike/push/AttackerA.java new file mode 100644 index 0000000..5bd76a8 --- /dev/null +++ b/src/main/java/algoLike/push/AttackerA.java @@ -0,0 +1,24 @@ +package algoLike.push; + +import java.util.*; +import javax.ws.rs.*; +import javax.ws.rs.client.*; +import javax.ws.rs.core.*; +import org.springframework.stereotype.Component; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.core.JsonProcessingException; + +@Path("/attackerA") +@Component +public class AttackerA { + private int value; + @PUT + public void setAttackerA(@FormParam("a") int a) { + this.value = a; + } + @Produces(MediaType.APPLICATION_JSON) + @GET + public int getValue() { + return value; + } +} \ No newline at end of file