Class Hello


  • @Path("")
    public class Hello
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      javax.ws.rs.core.UriInfo context  
      org.glassfish.jersey.server.ResourceConfig rc  
      javax.ws.rs.core.Request request  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hello()  
    • Field Detail

      • rc

        @Context
        public org.glassfish.jersey.server.ResourceConfig rc
      • context

        @Context
        public javax.ws.rs.core.UriInfo context
      • request

        @Context
        public javax.ws.rs.core.Request request
    • Constructor Detail

      • Hello

        public Hello()
    • Method Detail

      • sayPlainTextHello

        @GET
        @Produces("text/plain")
        public java.lang.String sayPlainTextHello()
      • sayXMLHello

        @GET
        @Produces("text/xml")
        public java.lang.String sayXMLHello()
      • sayHTMLHello

        @GET
        @Produces("text/html")
        public java.lang.String sayHTMLHello()
      • getJSON2

        @POST
        @Path("getJSON")
        @Consumes("application/json")
        @Produces("text/plain")
        public java.lang.String getJSON2​(A a)
      • getXML

        @GET
        @Path("getXML")
        @Produces("application/xml")
        public A getXML()
      • main

        public static void main​(java.lang.String[] args)
        Main for testing.