Package io.antmedia.console.rest
Class SupportRestService
java.lang.Object
io.antmedia.console.rest.CommonRestService
io.antmedia.console.rest.SupportRestService
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static org.slf4j.Loggerstatic final intstatic final intprivate jakarta.servlet.ServletContextprivate IStatsCollectorFields inherited from class io.antmedia.console.rest.CommonRestService
APP_NAME_REGEX, applicationContext, gson, IS_AUTHENTICATED, LICENSE_KEY, MARKET_BUILD, NODE_GROUP, SCOPE_SYSTEM, SERVER_NAME, SESSION_SCOPE_KEY, USER_EMAIL, USER_PASSWORD, USER_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddZipEntry(ZipOutputStream zipOut, File input) static Stringstatic StringBuilderreadResponse(org.apache.http.HttpResponse response) booleansendSupport(SupportRequest supportRequest) sendSupportRequest(SupportRequest request) static voidzipFile()Methods inherited from class io.antmedia.console.rest.CommonRestService
addInitialUser, addUser, authenticateUser, changeLogSettings, changeServerSettings, changeSettings, changeUserPassword, changeUserPasswordInternal, configureSsl, createApplication, currentLevelDetect, deleteApplication, deleteSession, deleteUser, deleteVoDStream, editUser, extractFQDN, getAllowedLoginAttempts, getAppAdaptor, getApplication, getApplicationInfo, getApplications, getAppLiveStreams, getBlockedStatus, getContext, getCPUInfo, getDataStore, getDataStoreFactory, getFileSystemInfo, getGPUInfo, getHeapDump, getHttpClient, getJVMMemoryInfo, getLicenceServiceInstance, getLicenceStatus, getLicenceStatus, getLiveClientsSize, getLogFile, getMD5Hash, getServerSettings, getServerSettingsInternal, getServerTime, getSettings, getShutdownStatus, getStatsCollector, getSystemInfo, getSystemMemoryInfo, getSystemResourcesInfo, getThreadDump, getThreadDumpJSON, getThreadsInfo, getTmpDirectory, getUserList, getVersion, getWebAppsDirectory, isAdmin, isAuthenticated, isAuthenticatedRest, isClusterMode, isEnterpriseEdition, isFirstLogin, isInClusterMode, isShutdownProperly, resetBroadcast, sendUserInfo, setDataStore, setDataStoreFactory, setRequestForTest, setShutdownStatus
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
servletContext
@Context private jakarta.servlet.ServletContext servletContext -
statsCollector
-
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
- Throws:
Exception
-
zipFile
public static void zipFile() -
addZipEntry
-
getCpuInfo
-
readResponse
- Throws:
IOException
-