Class SupportRestService

java.lang.Object
io.antmedia.console.rest.CommonRestService
io.antmedia.console.rest.SupportRestService

@Component @Path("/v2/support") public class SupportRestService extends CommonRestService
  • Field Details

    • logger

      protected static org.slf4j.Logger logger
    • servletContext

      @Context private jakarta.servlet.ServletContext servletContext
    • statsCollector

      private IStatsCollector statsCollector
    • LOG_FILE

      public static final String LOG_FILE
      See Also:
    • SEND_SUPPORT_CONNECT_TIMEOUT_SECONDS

      public static final int SEND_SUPPORT_CONNECT_TIMEOUT_SECONDS
      See Also:
    • SEND_SUPPORT_SOCKET_TIMEOUT_SECONDS

      public static final int SEND_SUPPORT_SOCKET_TIMEOUT_SECONDS
      See Also:
  • Constructor Details

    • SupportRestService

      public SupportRestService()
  • Method Details

    • sendSupportRequest

      @POST @Path("/request") @Produces("application/json") @Consumes("application/json") public Result sendSupportRequest(SupportRequest request)
    • sendSupport

      public boolean sendSupport(SupportRequest supportRequest) throws Exception
      Throws:
      Exception
    • zipFile

      public static void zipFile()
    • addZipEntry

      private static void addZipEntry(ZipOutputStream zipOut, File input)
    • getCpuInfo

      public static String getCpuInfo()
    • readResponse

      public static StringBuilder readResponse(org.apache.http.HttpResponse response) throws IOException
      Throws:
      IOException