Class HelloWorldResource


  • @Path("helloworld")
    public class HelloWorldResource
    extends Object
    Author:
    Jakub Podlesak
    • Constructor Detail

      • HelloWorldResource

        public HelloWorldResource()
    • Method Detail

      • getHello

        @GET
        @Produces("text/plain")
        public String getHello()
      • getQueryParameter

        @GET
        @Path("query1")
        @Produces("text/plain")
        public String getQueryParameter​(@DefaultValue("error1") @QueryParam("test1")
                                        String test1,
                                        @DefaultValue("error2") @QueryParam("test2")
                                        String test2)
      • postQueryParameter

        @POST
        @Path("query2")
        @Consumes("text/plain")
        @Produces("text/plain")
        public String postQueryParameter​(@DefaultValue("error1") @QueryParam("test1")
                                         String test1,
                                         @DefaultValue("error2") @QueryParam("test2")
                                         String test2,
                                         String entity)