Interface ManageSessionsApi
-
- All Known Implementing Classes:
SwingAppRestService
@Path("/") public interface ManageSessionsApiWebswing REST APIThe public REST API provided by Webswing Server
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FiledownloadSessionsLog()Download Session LogsStringgenerateCsrfToken()CSRF TokenList<String>getLogInstanceIds()Get session-logging InstancesSwingSessiongetMetrics(String uuid)Get Session MetricsSwingSessiongetSession(String id)Get Session detailsLogResponsegetSessionLogs(LogRequest logRequest)Request Session Log ContentStringgetThreadDump(String instanceId, String timestamp)Get Thread DumpvoidrequestThreadDump(String instanceId)Create Thread Dumpvoidshutdown(String id, String force)Request session shutdownSwingSessionstartRecording(String id)Start Session RecordingvoidtoggleStatisticsLogging(String instanceId, Boolean enabled)Set statistics logging value
-
-
-
Method Detail
-
downloadSessionsLog
@GET @Path("/rest/session/logs") @Produces("application/octet-stream") File downloadSessionsLog() throws RestExceptionDownload Session Logs- Throws:
RestException
-
generateCsrfToken
@GET @Path("/rest/CSRFToken") @Produces("text/plain") String generateCsrfToken() throws RestExceptionCSRF Token- Throws:
RestException
-
getLogInstanceIds
@GET @Path("/rest/session/logs/instanceIds") @Produces("application/json") List<String> getLogInstanceIds() throws RestExceptionGet session-logging Instances- Throws:
RestException
-
getMetrics
@GET @Path("/rest/metrics/{uuid}") @Produces("application/json") SwingSession getMetrics(@PathParam("uuid") String uuid) throws RestExceptionGet Session Metrics- Throws:
RestException
-
getSession
@GET @Path("/rest/session/{id}") @Produces("application/json") SwingSession getSession(@PathParam("id") String id) throws RestExceptionGet Session details- Throws:
RestException
-
getSessionLogs
@POST @Path("/rest/session/logs") @Consumes("application/json") @Produces("application/json") LogResponse getSessionLogs(LogRequest logRequest) throws RestExceptionRequest Session Log Content- Throws:
RestException
-
getThreadDump
@GET @Path("/rest/threadDump/{instanceId}") @Produces("text/plain") String getThreadDump(@PathParam("instanceId") String instanceId, @QueryParam("timestamp") String timestamp) throws RestExceptionGet Thread Dump- Throws:
RestException
-
requestThreadDump
@POST @Path("/rest/threadDump/{instanceId}") void requestThreadDump(@PathParam("instanceId") String instanceId) throws RestExceptionCreate Thread Dump- Throws:
RestException
-
shutdown
@DELETE @Path("/rest/session/{id}") void shutdown(@PathParam("id") String id, @QueryParam("force") String force) throws RestExceptionRequest session shutdown- Throws:
RestException
-
startRecording
@GET @Path("/rest/record/{id}") @Produces("application/json") SwingSession startRecording(@PathParam("id") String id) throws RestExceptionStart Session Recording- Throws:
RestException
-
toggleStatisticsLogging
@POST @Path("/rest/toggleStatisticsLogging/{instanceId}/{enabled}") void toggleStatisticsLogging(@PathParam("instanceId") String instanceId, @PathParam("enabled") Boolean enabled) throws RestExceptionSet statistics logging value- Throws:
RestException
-
-