diff --git a/JerseyTest/src/main/java/jerseyTest/resources/fujisan.java b/JerseyTest/src/main/java/jerseyTest/resources/fujisan.java new file mode 100644 index 0000000..434ef36 --- /dev/null +++ b/JerseyTest/src/main/java/jerseyTest/resources/fujisan.java @@ -0,0 +1,23 @@ +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!!!"; + } +}