Class RestReports


  • @Path("/reports")
    public class RestReports
    extends Object
    Root of RESTful api. It provides login and logout. Also have method for printing every method which is provides by RESTful api.
    Author:
    Terry Brady, Georgetown University
    • Constructor Detail

      • RestReports

        public RestReports()
    • Method Detail

      • reportIndex

        @GET
        @Produces("application/xml")
        public Report[] reportIndex()
                             throws javax.ws.rs.WebApplicationException
        Return html page with information about REST api. It contains methods all methods provide by REST api.
        Returns:
        HTML page which has information about all methods of REST api.
        Throws:
        javax.ws.rs.WebApplicationException
      • customReport

        @Path("/{report_nickname}")
        @GET
        public javax.ws.rs.core.Response customReport​(@PathParam("report_nickname")
                                                      String report_nickname,
                                                      @Context
                                                      javax.ws.rs.core.UriInfo uriInfo)
                                               throws javax.ws.rs.WebApplicationException
        Throws:
        javax.ws.rs.WebApplicationException