Class LogRestService


  • @Component
    @Path("logs")
    public class LogRestService
    extends Object
    • Constructor Detail

      • LogRestService

        public LogRestService()
    • Method Detail

      • getLogFiles

        @GET
        @Path("/")
        @Produces("application/json")
        public List<String> getLogFiles​(@Context
                                        javax.ws.rs.core.SecurityContext securityContext)
      • getFileContents

        @GET
        @Path("/contents")
        public javax.ws.rs.core.Response getFileContents​(@QueryParam("f")
                                                         String fileName,
                                                         @QueryParam("n")
                                                         Integer numLines,
                                                         @QueryParam("reverse") @DefaultValue("true")
                                                         boolean reverse,
                                                         @Context
                                                         javax.ws.rs.core.SecurityContext securityContext)
      • logFileContents

        public static javax.ws.rs.core.Response logFileContents​(Path path,
                                                                int numLastLinesToRead,
                                                                boolean reverse)