Interface ManageSessionsApi

  • All Known Implementing Classes:
    SwingAppRestService

    @Path("/")
    public interface ManageSessionsApi
    Webswing REST API

    The public REST API provided by Webswing Server

    • Method Detail

      • downloadSessionsLog

        @GET
        @Path("/rest/session/logs")
        @Produces("application/octet-stream")
        File downloadSessionsLog()
                          throws RestException
        Download Session Logs
        Throws:
        RestException
      • getLogInstanceIds

        @GET
        @Path("/rest/session/logs/instanceIds")
        @Produces("application/json")
        List<String> getLogInstanceIds()
                                throws RestException
        Get session-logging Instances
        Throws:
        RestException
      • getSessionLogs

        @POST
        @Path("/rest/session/logs")
        @Consumes("application/json")
        @Produces("application/json")
        LogResponse getSessionLogs​(LogRequest logRequest)
                            throws RestException
        Request 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 RestException
        Get Thread Dump
        Throws:
        RestException
      • requestThreadDump

        @POST
        @Path("/rest/threadDump/{instanceId}")
        void requestThreadDump​(@PathParam("instanceId")
                               String instanceId)
                        throws RestException
        Create Thread Dump
        Throws:
        RestException
      • shutdown

        @DELETE
        @Path("/rest/session/{id}")
        void shutdown​(@PathParam("id")
                      String id,
                      @QueryParam("force")
                      String force)
               throws RestException
        Request session shutdown
        Throws:
        RestException
      • toggleStatisticsLogging

        @POST
        @Path("/rest/toggleStatisticsLogging/{instanceId}/{enabled}")
        void toggleStatisticsLogging​(@PathParam("instanceId")
                                     String instanceId,
                                     @PathParam("enabled")
                                     Boolean enabled)
                              throws RestException
        Set statistics logging value
        Throws:
        RestException