Class GreetingsResource
- java.lang.Object
-
- info.ejava.examples.jaxrs.todos.rs.GreetingsResource
-
@Path("greetings") public class GreetingsResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private GreetingEJB
greetingEJB
-
Constructor Summary
Constructors Constructor Description GreetingsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
greet(String name)
javax.ws.rs.core.Response
sayHi()
-
-
-
Field Detail
-
greetingEJB
private GreetingEJB greetingEJB
-
-
Method Detail
-
sayHi
@GET @Path("hi") @Produces("text/plain") public javax.ws.rs.core.Response sayHi()
-
greet
@GET @Path("greet") @Produces("text/plain") public javax.ws.rs.core.Response greet(@QueryParam("name") String name)
-
-