Class HelloWorldResource


  • @Path("helloworld")
    @Produces("text/plain")
    public class HelloWorldResource
    extends Object
    Simple "Hello World" resource with three resource methods and a sub-resource locator (that points again to this class itself).
    Author:
    Michal Gajdos
    • Constructor Detail

      • HelloWorldResource

        public HelloWorldResource()
    • Method Detail

      • get

        @GET
        public String get()
      • put

        @PUT
        public void put​(String entity)
      • sub

        @Path("locator")
        public Class<?> sub()