public abstract class BaseRestService extends Object
| Constructor and Description |
|---|
BaseRestService() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateCsrfToken() |
org.webswing.server.common.model.admin.ApplicationInfo |
getAppInfo() |
protected org.webswing.server.common.model.admin.ApplicationInfo |
getAppInfoImpl() |
List<org.webswing.model.s2c.ApplicationInfoMsg> |
getApps() |
protected abstract List<org.webswing.model.s2c.ApplicationInfoMsg> |
getAppsImpl() |
org.webswing.server.common.model.meta.MetaObject |
getConfigMeta() |
protected abstract ConfigurationService |
getConfigService() |
protected abstract PrimaryUrlHandler |
getHandler() |
org.webswing.server.common.model.meta.MetaObject |
getMeta(Map<String,Object> json) |
List<String> |
getPaths() |
protected abstract List<String> |
getPathsImpl() |
Map<String,Boolean> |
getPermissions() |
protected Map<String,Boolean> |
getPermissionsImpl() |
Map<String,String> |
getVariables(String type) |
String |
getVersion() |
protected boolean |
isMasterPermited(WebswingAction... actions) |
protected boolean |
isPermited(WebswingAction... actions) |
void |
ping() |
void |
saveConfig(Map<String,Object> config) |
protected void |
saveConfigImpl(Map<String,Object> config) |
protected abstract PrimaryUrlHandler getHandler()
protected abstract ConfigurationService getConfigService()
@GET @Path(value="/apps") public List<org.webswing.model.s2c.ApplicationInfoMsg> getApps() throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsExceptionprotected abstract List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsImpl()
@GET
@Path(value="/info")
public org.webswing.server.common.model.admin.ApplicationInfo getAppInfo()
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsExceptionprotected org.webswing.server.common.model.admin.ApplicationInfo getAppInfoImpl()
@GET @Path(value="/rest/paths") public List<String> getPaths() throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@POST @Path(value="/rest/config") public void saveConfig(Map<String,Object> config) throws Exception
Exceptionprotected void saveConfigImpl(Map<String,Object> config) throws Exception
Exception@GET
@Path(value="/rest/config")
public org.webswing.server.common.model.meta.MetaObject getConfigMeta()
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET
@Path(value="/rest/variables/{type}")
public Map<String,String> getVariables(@PathParam(value="type")
String type)
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@POST @Path(value="/rest/metaConfig") public org.webswing.server.common.model.meta.MetaObject getMeta(Map<String,Object> json) throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/permissions") public Map<String,Boolean> getPermissions() throws Exception
Exceptionprotected Map<String,Boolean> getPermissionsImpl() throws Exception
Exception@GET @Path(value="/rest/version") @Produces(value="text/plain") public String getVersion() throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/CSRFToken") @Produces(value="text/plain") public String generateCsrfToken() throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/ping") public void ping()
protected boolean isPermited(WebswingAction... actions)
protected boolean isMasterPermited(WebswingAction... actions)
Copyright © 2018. All rights reserved.