Class SwingAppRestService
- java.lang.Object
-
- org.webswing.server.services.rest.resources.BaseRestService
-
- org.webswing.server.services.rest.resources.SwingAppRestService
-
@Path("") @Produces("application/json") public class SwingAppRestService extends BaseRestService
-
-
Constructor Summary
Constructors Constructor Description SwingAppRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responseappicon()javax.ws.rs.core.ResponsedownloadLog()protected org.webswing.server.common.model.admin.ApplicationInfogetAppInfoImpl()protected List<org.webswing.model.s2c.ApplicationInfoMsg>getAppsImpl()protected ConfigurationServicegetConfigService()protected PrimaryUrlHandlergetHandler()List<String>getLogInstanceIds()org.webswing.server.common.model.rest.LogResponsegetLogs(org.webswing.server.common.model.rest.SessionLogRequest request)org.webswing.server.common.model.admin.SwingSessiongetMetrics(String uuid)protected List<org.webswing.server.common.model.admin.BasicApplicationInfo>getPathsImpl()org.webswing.server.common.model.admin.SwingSessiongetSession(String id)org.webswing.server.common.model.admin.SessionsgetSessions()Map<String,Map<Long,Number>>getStats()StringgetThreadDump(String id, String timestamp)voidrequestThreadDump(String id)voidshutdown(String id, String forceKill)javax.ws.rs.core.Responsestart()org.webswing.server.common.model.admin.SwingSessionstartRecording(String id)javax.ws.rs.core.Responsestop()-
Methods inherited from class org.webswing.server.services.rest.resources.BaseRestService
generateCsrfToken, getAppInfo, getApps, getConfigMeta, getMeta, getPaths, getPermissions, getPermissionsImpl, getVersion, isMasterPermited, isPermited, ping, resolve, saveConfig, saveConfigImpl, searchVariables
-
-
-
-
Method Detail
-
getAppsImpl
protected List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsImpl()
- Specified by:
getAppsImplin classBaseRestService
-
getAppInfoImpl
protected org.webswing.server.common.model.admin.ApplicationInfo getAppInfoImpl()
- Overrides:
getAppInfoImplin classBaseRestService
-
getPathsImpl
protected List<org.webswing.server.common.model.admin.BasicApplicationInfo> getPathsImpl()
- Specified by:
getPathsImplin classBaseRestService
-
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
-
getHandler
protected PrimaryUrlHandler getHandler()
- Specified by:
getHandlerin classBaseRestService
-
getConfigService
protected ConfigurationService getConfigService()
- Specified by:
getConfigServicein classBaseRestService
-
-