Class SwingAppRestService


  • @Path("")
    @Produces("application/json")
    public class SwingAppRestService
    extends BaseRestService
    • Constructor Detail

      • SwingAppRestService

        public SwingAppRestService()
    • Method Detail

      • getAppInfoImpl

        protected org.webswing.server.common.model.admin.ApplicationInfo getAppInfoImpl()
        Overrides:
        getAppInfoImpl in class BaseRestService
      • getPathsImpl

        protected List<org.webswing.server.common.model.admin.BasicApplicationInfo> getPathsImpl()
        Specified by:
        getPathsImpl in class BaseRestService
      • start

        @GET
        @Path("/start")
        public javax.ws.rs.core.Response start()
                                        throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • stop

        @GET
        @Path("/stop")
        public javax.ws.rs.core.Response stop()
                                       throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • appicon

        @GET
        @Path("/appicon")
        @Produces("image/png")
        public javax.ws.rs.core.Response appicon()
                                          throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getSessions

        @GET
        @Path("/rest/sessions")
        public org.webswing.server.common.model.admin.Sessions getSessions()
                                                                    throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getSession

        @GET
        @Path("/rest/session/{id}")
        public org.webswing.server.common.model.admin.SwingSession getSession​(@PathParam("id")
                                                                              String id)
                                                                       throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getMetrics

        @GET
        @Path("/rest/metrics/{uuid}")
        public org.webswing.server.common.model.admin.SwingSession getMetrics​(@PathParam("uuid")
                                                                              String uuid)
                                                                       throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • startRecording

        @GET
        @Path("/rest/record/{id}")
        public org.webswing.server.common.model.admin.SwingSession startRecording​(@PathParam("id")
                                                                                  String id)
                                                                           throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getThreadDump

        @GET
        @Path("/rest/threadDump/{path}")
        @Produces("text/plain")
        public String getThreadDump​(@PathParam("path")
                                    String id,
                                    @QueryParam("id")
                                    String timestamp)
                             throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • requestThreadDump

        @POST
        @Path("/rest/threadDump/{path}")
        public void requestThreadDump​(@PathParam("path")
                                      String id)
                               throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • shutdown

        @DELETE
        @Path("/rest/session/{id}")
        public void shutdown​(@PathParam("id")
                             String id,
                             @QueryParam("force")
                             String forceKill)
                      throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getLogs

        @POST
        @Path("/rest/logs/session")
        public org.webswing.server.common.model.rest.LogResponse getLogs​(org.webswing.server.common.model.rest.SessionLogRequest request)
                                                                  throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • downloadLog

        @GET
        @Path("/rest/logs/session")
        public javax.ws.rs.core.Response downloadLog()
                                              throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getLogInstanceIds

        @GET
        @Path("/rest/logs/session/instanceIds")
        public List<String> getLogInstanceIds()
                                       throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getStats

        @GET
        @Path("/rest/stats")
        public Map<String,​Map<Long,​Number>> getStats()
                                                          throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException