public class GlobalUrlHandler extends PrimaryUrlHandler implements SwingInstanceHolder, SecuredPathHandler
JAVASCRIPT_NLS_PREFIX, securityModuleService, varSubs| Constructor and Description |
|---|
GlobalUrlHandler(WebSocketService websocket,
ConfigurationService config,
SwingInstanceManagerService appFactory,
ResourceHandlerService resourceService,
SecurityModuleService securityService,
LoginHandlerService loginService,
javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
createSwingApp(String path) |
void |
destroy() |
InputStream |
downloadLog(String type) |
SwingInstance |
findInstanceByClientId(String clientId) |
SwingInstance |
findInstanceBySessionId(String uuid) |
String |
generateCsrfToken() |
List<SwingInstance> |
getAllClosedInstances() |
List<SwingInstance> |
getAllInstances() |
org.webswing.server.common.model.admin.ApplicationInfo |
getApplicationInfo() |
List<org.webswing.model.s2c.ApplicationInfoMsg> |
getApplicationInfo(javax.servlet.http.HttpServletRequest req) |
List<SwingInstanceManager> |
getApplications() |
org.webswing.server.common.model.meta.MetaObject |
getConfigMeta() |
org.webswing.server.common.model.rest.LogResponse |
getLogs(String type,
org.webswing.server.common.model.rest.LogRequest request) |
org.webswing.server.common.model.meta.MetaObject |
getMeta(Map<String,Object> json) |
protected String |
getPath() |
List<String> |
getPaths(javax.servlet.http.HttpServletRequest req) |
Map<String,Boolean> |
getPermissions() |
protected WebswingSecurityConfig |
getSecurityConfig() |
javax.servlet.ServletContext |
getServletContext() |
Map<String,String> |
getVariables(String type) |
String |
getVersion() |
URL |
getWebResource(String resource) |
void |
init() |
SwingInstanceManager |
installApplication(org.webswing.server.common.model.SecuredPathConfig swing) |
void |
loadApplications() |
void |
registerChildUrlHandler(UrlHandler handler) |
void |
registerFirstChildUrlHandler(UrlHandler handler) |
void |
removeChildUrlHandler(UrlHandler handler) |
void |
removeSwingApp(String path) |
void |
saveConfig(Map<String,Object> config) |
boolean |
serve(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
uninstallApplication(SwingInstanceManager appToRemove) |
disable, get, getConfig, getFromSecuritySession, getStatus, getSwingConfig, initConfiguration, isEnabled, isMasterPermited, isOriginAllowed, isPermited, isSameOrigin, isSubPath, killAll, replaceVariables, resolveFile, setConfig, setToSecuritySession, validateCsrfTokencheckMasterPermission, checkPermission, checkPermissionLocalOrMaster, getFullPathMapping, getLastModified, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getUser, secureServe, serveRestMethod, toPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getConfig, getPathMapping, initConfiguration, isEnabledgetSecuredPath@Inject public GlobalUrlHandler(WebSocketService websocket, ConfigurationService config, SwingInstanceManagerService appFactory, ResourceHandlerService resourceService, SecurityModuleService securityService, LoginHandlerService loginService, javax.servlet.ServletContext servletContext)
public void init()
init in interface UrlHandlerinit in class PrimaryUrlHandlerpublic void destroy()
destroy in interface UrlHandlerdestroy in class PrimaryUrlHandlerpublic boolean serve(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
serve in interface UrlHandlerserve in class PrimaryUrlHandlerprotected WebswingSecurityConfig getSecurityConfig()
getSecurityConfig in class PrimaryUrlHandlerpublic void loadApplications()
public SwingInstanceManager installApplication(org.webswing.server.common.model.SecuredPathConfig swing)
public void uninstallApplication(SwingInstanceManager appToRemove)
public void registerFirstChildUrlHandler(UrlHandler handler)
registerFirstChildUrlHandler in interface UrlHandlerregisterFirstChildUrlHandler in class AbstractUrlHandlerpublic void registerChildUrlHandler(UrlHandler handler)
registerChildUrlHandler in interface UrlHandlerregisterChildUrlHandler in class AbstractUrlHandlerpublic void removeChildUrlHandler(UrlHandler handler)
removeChildUrlHandler in interface UrlHandlerremoveChildUrlHandler in class AbstractUrlHandlerprotected String getPath()
getPath in class AbstractUrlHandlerpublic void setServletContext(javax.servlet.ServletContext servletContext)
public javax.servlet.ServletContext getServletContext()
getServletContext in interface UrlHandlergetServletContext in class AbstractUrlHandlerpublic SwingInstance findInstanceBySessionId(String uuid)
findInstanceBySessionId in interface SwingInstanceHolderpublic SwingInstance findInstanceByClientId(String clientId)
findInstanceByClientId in interface SwingInstanceHolderpublic List<SwingInstance> getAllInstances()
getAllInstances in interface SwingInstanceHolderpublic List<SwingInstance> getAllClosedInstances()
getAllClosedInstances in interface SwingInstanceHolderpublic List<SwingInstanceManager> getApplications()
getApplications in interface SwingInstanceHolderpublic URL getWebResource(String resource)
getWebResource in interface org.webswing.server.common.model.meta.ConfigContextgetWebResource in class PrimaryUrlHandler@GET @Path(value="/apps") public List<org.webswing.model.s2c.ApplicationInfoMsg> getApplicationInfo(javax.servlet.http.HttpServletRequest req) throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET
@Path(value="/info")
public org.webswing.server.common.model.admin.ApplicationInfo getApplicationInfo()
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/paths") public List<String> getPaths(javax.servlet.http.HttpServletRequest req) throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/version") public String getVersion() throws org.webswing.server.model.exception.WsException
getVersion in class PrimaryUrlHandlerorg.webswing.server.model.exception.WsException@GET
@Path(value="/rest/config")
public org.webswing.server.common.model.meta.MetaObject getConfigMeta()
throws org.webswing.server.model.exception.WsException
getConfigMeta in class PrimaryUrlHandlerorg.webswing.server.model.exception.WsException@GET
@Path(value="/rest/remove")
public void removeSwingApp(@PathParam(value="")
String path)
throws Exception
Exception@GET
@Path(value="/rest/create")
public void createSwingApp(@PathParam(value="")
String path)
throws Exception
Exception@POST @Path(value="/rest/config") public void saveConfig(Map<String,Object> config) throws Exception
Exception@GET @Path(value="/rest/permissions") public Map<String,Boolean> getPermissions() throws Exception
getPermissions in class PrimaryUrlHandlerException@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
getMeta in class PrimaryUrlHandlerorg.webswing.server.model.exception.WsException@GET @Path(value="/rest/variables") public Map<String,String> getVariables(@PathParam(value="") String type) throws org.webswing.server.model.exception.WsException
getVariables in class PrimaryUrlHandlerorg.webswing.server.model.exception.WsException@POST
@Path(value="/rest/logs")
public org.webswing.server.common.model.rest.LogResponse getLogs(@PathParam(value="")
String type,
org.webswing.server.common.model.rest.LogRequest request)
throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/logs") public InputStream downloadLog(@PathParam(value="") String type) throws org.webswing.server.model.exception.WsException
org.webswing.server.model.exception.WsException@GET @Path(value="/rest/CSRFToken") public String generateCsrfToken()
generateCsrfToken in class PrimaryUrlHandlerCopyright © 2017. All rights reserved.