Class SwingAppRestService
- java.lang.Object
-
- org.webswing.server.services.rest.resources.SwingAppRestService
-
- All Implemented Interfaces:
BasicApi,ManageConfigurationApi,ManageSessionsApi
public class SwingAppRestService extends Object implements BasicApi, ManageConfigurationApi, ManageSessionsApi
-
-
Constructor Summary
Constructors Constructor Description SwingAppRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeractiveSessionsCount()Get Number of Active SessionsFiledownloadSessionsLog()Download Session LogsStringgenerateCsrfToken()CSRF TokenStringgetAdminConsoleUrl()URL of admin consoleList<ApplicationInfoMsg>getApps()Get ApplicationsMetaObjectgetConfig()Get ConfigFilegetIcon()Get Application IconApplicationInfogetInfo()Get Path InfoList<String>getLogInstanceIds()Get session-logging InstancesManifestgetManifest()PWA manifestMetaObjectgetMeta(Map<String,Object> requestBody)Describe ConfigurationSwingSessiongetMetrics(String uuid)Get Session MetricsList<BasicApplicationInfo>getPaths()Get Available ApplicationsPermissionsgetPermissions()Get User PermissionsSwingSessiongetSession(String id)Get Session detailsLogResponsegetSessionLogs(LogRequest request)Request Session Log ContentSessionsgetSessions()Get All SessionsMap<String,Map<String,BigDecimal>>getStats()Get Aggregated StatsStringgetThreadDump(String instanceId, String timestamp)Get Thread DumpStringgetVersion()Webswing Server Versionvoidping()PingvoidrequestThreadDump(String id)Create Thread DumpStringresolve(String type, String resolve)Resolve Variables.voidsaveConfig(Map<String,Object> config)Set ConfigMap<String,String>searchVariables(String type, String search)Find Variablesvoidshutdown(String id, String forceKill)Request session shutdownSwingSessionstartRecording(String id)Start Session RecordingvoidtoggleStatisticsLogging(String instanceId, Boolean enabled)Set statistics logging value
-
-
-
Method Detail
-
getInfo
public ApplicationInfo getInfo() throws RestException
Description copied from interface:BasicApiGet Path Info- Specified by:
getInfoin interfaceBasicApi- Throws:
RestException
-
getPaths
public List<BasicApplicationInfo> getPaths() throws RestException
Description copied from interface:BasicApiGet Available Applications- Specified by:
getPathsin interfaceBasicApi- Throws:
RestException
-
getSessions
public Sessions getSessions() throws RestException
Description copied from interface:BasicApiGet All Sessions- Specified by:
getSessionsin interfaceBasicApi- Throws:
RestException
-
activeSessionsCount
public Integer activeSessionsCount() throws RestException
Description copied from interface:BasicApiGet Number of Active Sessions- Specified by:
activeSessionsCountin interfaceBasicApi- Throws:
RestException
-
getPermissions
public Permissions getPermissions() throws RestException
Description copied from interface:BasicApiGet User Permissions- Specified by:
getPermissionsin interfaceBasicApi- Throws:
RestException
-
getApps
public List<ApplicationInfoMsg> getApps() throws RestException
Description copied from interface:BasicApiGet Applications- Specified by:
getAppsin interfaceBasicApi- Throws:
RestException
-
getAdminConsoleUrl
public String getAdminConsoleUrl() throws RestException
Description copied from interface:BasicApiURL of admin console- Specified by:
getAdminConsoleUrlin interfaceBasicApi- Throws:
RestException
-
getVersion
public String getVersion() throws RestException
Description copied from interface:BasicApiWebswing Server Version- Specified by:
getVersionin interfaceBasicApi- Throws:
RestException
-
ping
public void ping() throws RestExceptionDescription copied from interface:BasicApiPing- Specified by:
pingin interfaceBasicApi- Throws:
RestException
-
getStats
public Map<String,Map<String,BigDecimal>> getStats() throws RestException
Description copied from interface:BasicApiGet Aggregated Stats- Specified by:
getStatsin interfaceBasicApi- Throws:
RestException
-
getConfig
public MetaObject getConfig() throws RestException
Description copied from interface:ManageConfigurationApiGet Config- Specified by:
getConfigin interfaceManageConfigurationApi- Throws:
RestException
-
getMeta
public MetaObject getMeta(Map<String,Object> requestBody) throws RestException
Description copied from interface:ManageConfigurationApiDescribe Configuration- Specified by:
getMetain interfaceManageConfigurationApi- Throws:
RestException
-
saveConfig
public void saveConfig(Map<String,Object> config) throws RestException
Description copied from interface:ManageConfigurationApiSet Config- Specified by:
saveConfigin interfaceManageConfigurationApi- Throws:
RestException
-
resolve
public String resolve(String type, String resolve) throws RestException
Description copied from interface:ManageConfigurationApiResolve Variables.- Specified by:
resolvein interfaceManageConfigurationApi- Throws:
RestException
-
searchVariables
public Map<String,String> searchVariables(String type, String search) throws RestException
Description copied from interface:ManageConfigurationApiFind Variables- Specified by:
searchVariablesin interfaceManageConfigurationApi- Throws:
RestException
-
getSession
public SwingSession getSession(String id) throws RestException
Description copied from interface:ManageSessionsApiGet Session details- Specified by:
getSessionin interfaceManageSessionsApi- Throws:
RestException
-
getMetrics
public SwingSession getMetrics(String uuid) throws RestException
Description copied from interface:ManageSessionsApiGet Session Metrics- Specified by:
getMetricsin interfaceManageSessionsApi- Throws:
RestException
-
startRecording
public SwingSession startRecording(String id) throws RestException
Description copied from interface:ManageSessionsApiStart Session Recording- Specified by:
startRecordingin interfaceManageSessionsApi- Throws:
RestException
-
getThreadDump
public String getThreadDump(String instanceId, String timestamp) throws RestException
Description copied from interface:ManageSessionsApiGet Thread Dump- Specified by:
getThreadDumpin interfaceManageSessionsApi- Throws:
RestException
-
requestThreadDump
public void requestThreadDump(String id) throws RestException
Description copied from interface:ManageSessionsApiCreate Thread Dump- Specified by:
requestThreadDumpin interfaceManageSessionsApi- Throws:
RestException
-
toggleStatisticsLogging
public void toggleStatisticsLogging(String instanceId, Boolean enabled) throws RestException
Description copied from interface:ManageSessionsApiSet statistics logging value- Specified by:
toggleStatisticsLoggingin interfaceManageSessionsApi- Throws:
RestException
-
shutdown
public void shutdown(String id, String forceKill) throws RestException
Description copied from interface:ManageSessionsApiRequest session shutdown- Specified by:
shutdownin interfaceManageSessionsApi- Throws:
RestException
-
getSessionLogs
public LogResponse getSessionLogs(LogRequest request) throws RestException
Description copied from interface:ManageSessionsApiRequest Session Log Content- Specified by:
getSessionLogsin interfaceManageSessionsApi- Throws:
RestException
-
getLogInstanceIds
public List<String> getLogInstanceIds() throws RestException
Description copied from interface:ManageSessionsApiGet session-logging Instances- Specified by:
getLogInstanceIdsin interfaceManageSessionsApi- Throws:
RestException
-
downloadSessionsLog
public File downloadSessionsLog() throws RestException
Description copied from interface:ManageSessionsApiDownload Session Logs- Specified by:
downloadSessionsLogin interfaceManageSessionsApi- Throws:
RestException
-
generateCsrfToken
public String generateCsrfToken() throws RestException
Description copied from interface:ManageSessionsApiCSRF Token- Specified by:
generateCsrfTokenin interfaceManageSessionsApi- Throws:
RestException
-
getManifest
public Manifest getManifest() throws RestException
Description copied from interface:BasicApiPWA manifest- Specified by:
getManifestin interfaceBasicApi- Throws:
RestException
-
getIcon
public File getIcon() throws RestException
Description copied from interface:BasicApiGet Application Icon- Specified by:
getIconin interfaceBasicApi- Throws:
RestException
-
-