Class GlobalRestService


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

      • GlobalRestService

        public GlobalRestService()
    • 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
      • removeSwingApp

        @GET
        @Path("/rest/remove{appPath: .+?}")
        public void removeSwingApp​(@PathParam("appPath")
                                   String path)
                            throws Exception
        Throws:
        Exception
      • createSwingApp

        @GET
        @Path("/rest/create{appPath: .+?}")
        public void createSwingApp​(@PathParam("appPath")
                                   String path)
                            throws Exception
        Throws:
        Exception
      • getLogs

        @POST
        @Path("/rest/logs/{type}")
        public org.webswing.server.common.model.rest.LogResponse getLogs​(@PathParam("type")
                                                                         String type,
                                                                         org.webswing.server.common.model.rest.LogRequest request)
                                                                  throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • downloadLog

        @GET
        @Path("/rest/logs/{type}")
        public javax.ws.rs.core.Response downloadLog​(@PathParam("type")
                                                     String type)
                                              throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getAppsForSessionLogView

        @GET
        @Path("/rest/logs/sessionApps")
        public List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsForSessionLogView()
                                                                                 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
      • 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