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("/attackerB") @Component public class AttackerB { private int value; @PUT public void setAttackerB(@FormParam("b") int b) { this.value = b; } @Produces(MediaType.APPLICATION_JSON) @GET public int getValue() { return value; } }