Newer
Older
algoLike.pull / src / main / java / algoLike / pull / TargetA.java
Shinji on 25 Jan 2023 703 bytes pullに変更
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;
import pushPullRefactor.Getter;
import pushPullRefactor.Message;
import pushPullRefactor.Resource;
import pushPullRefactor.State;

@Path("/targetA")
@Component
@Resource("targetA")
public class TargetA {
	@State
	private int value;
	@PUT
	@Message({})
	public void setTargetA(@FormParam("a") int a) {
		this.value = a;
	}
	@Produces(MediaType.APPLICATION_JSON)
	@GET
	@Getter
	public int getValue() {
		return value;
	}
}