package jerseyTest.resources; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; @Path("/fuji") public class fujisan { private String name = null; @GET @Produces(MediaType.TEXT_PLAIN) public String getName() { return name; } @PUT @Produces(MediaType.TEXT_PLAIN) public String setName(@FormParam("name") String name) { this.name = name; return "success!!!"; } }