Class GlobalRestService
- java.lang.Object
-
- org.webswing.server.services.rest.resources.BaseRestService
-
- org.webswing.server.services.rest.resources.GlobalRestService
-
@Path("") @Produces("application/json") public class GlobalRestService extends BaseRestService
-
-
Constructor Summary
Constructors Constructor Description GlobalRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateSwingApp(String path)javax.ws.rs.core.ResponsedownloadLog(String type)protected org.webswing.server.common.model.admin.ApplicationInfogetAppInfoImpl()List<org.webswing.model.s2c.ApplicationInfoMsg>getAppsForSessionLogView()protected List<org.webswing.model.s2c.ApplicationInfoMsg>getAppsImpl()protected ConfigurationServicegetConfigService()protected PrimaryUrlHandlergetHandler()org.webswing.server.common.model.rest.LogResponsegetLogs(String type, org.webswing.server.common.model.rest.LogRequest request)protected List<org.webswing.server.common.model.admin.BasicApplicationInfo>getPathsImpl()protected Map<String,Boolean>getPermissionsImpl()org.webswing.server.common.model.admin.SessionsgetSessions()Map<String,Map<Long,Number>>getStats()voidremoveSwingApp(String path)protected voidsaveConfigImpl(Map<String,Object> config)-
Methods inherited from class org.webswing.server.services.rest.resources.BaseRestService
generateCsrfToken, getAppInfo, getApps, getConfigMeta, getMeta, getPaths, getPermissions, getVersion, isMasterPermited, isPermited, ping, resolve, saveConfig, searchVariables
-
-
-
-
Method Detail
-
getAppsImpl
protected List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsImpl()
- Specified by:
getAppsImplin classBaseRestService
-
getAppInfoImpl
protected org.webswing.server.common.model.admin.ApplicationInfo getAppInfoImpl()
- Overrides:
getAppInfoImplin classBaseRestService
-
getPathsImpl
protected List<org.webswing.server.common.model.admin.BasicApplicationInfo> getPathsImpl()
- Specified by:
getPathsImplin classBaseRestService
-
getPermissionsImpl
protected Map<String,Boolean> getPermissionsImpl() throws Exception
- Overrides:
getPermissionsImplin classBaseRestService- Throws:
Exception
-
saveConfigImpl
protected void saveConfigImpl(Map<String,Object> config) throws Exception
- Overrides:
saveConfigImplin classBaseRestService- Throws:
Exception
-
removeSwingApp
@GET @Path("/rest/remove{appPath: .+?}") public void removeSwingApp(@PathParam("appPath") String path) throws Exception- Throws:
Exception
-
createSwingApp
@GET @Path("/rest/create{appPath: .+?}") public void createSwingApp(@PathParam("appPath") String path) throws Exception- Throws:
Exception
-
getLogs
@POST @Path("/rest/logs/{type}") public org.webswing.server.common.model.rest.LogResponse getLogs(@PathParam("type") String type, org.webswing.server.common.model.rest.LogRequest request) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
downloadLog
@GET @Path("/rest/logs/{type}") public javax.ws.rs.core.Response downloadLog(@PathParam("type") String type) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getAppsForSessionLogView
@GET @Path("/rest/logs/sessionApps") public List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsForSessionLogView() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getSessions
@GET @Path("/rest/sessions") public org.webswing.server.common.model.admin.Sessions getSessions() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getStats
@GET @Path("/rest/stats") public Map<String,Map<Long,Number>> getStats() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getHandler
protected PrimaryUrlHandler getHandler()
- Specified by:
getHandlerin classBaseRestService
-
getConfigService
protected ConfigurationService getConfigService()
- Specified by:
getConfigServicein classBaseRestService
-
-