@Singleton public class GlobalUrlHandler extends PrimaryUrlHandler implements 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,
ExtensionService extService,
RestService restService) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
SwingInstanceManager |
getApplication(String path) |
List<SwingInstanceManager> |
getApplications() |
protected String |
getPath() |
protected WebswingSecurityConfig |
getSecurityConfig() |
javax.servlet.ServletContext |
getServletContext() |
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) |
boolean |
serve(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
void |
uninstallApplication(SwingInstanceManager appToRemove) |
disable, generateCsrfToken, get, getConfig, getFromSecuritySession, getStatus, getSwingConfig, getVariableMap, initConfiguration, isEnabled, isOriginAllowed, isSameOrigin, isSubPath, killAll, replaceVariables, resolveFile, setToSecuritySession, validateCsrfTokencheckMasterPermission, checkPermission, checkPermissionLocalOrMaster, getFullPathMapping, getLastModified, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getUser, secureServe, 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, ExtensionService extService, RestService restService)
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 javax.servlet.ServletContext getServletContext()
getServletContext in interface UrlHandlergetServletContext in class AbstractUrlHandlerpublic List<SwingInstanceManager> getApplications()
getApplications in class PrimaryUrlHandlerpublic SwingInstanceManager getApplication(String path)
public URL getWebResource(String resource)
getWebResource in interface org.webswing.server.common.model.meta.ConfigContextgetWebResource in class PrimaryUrlHandlerCopyright © 2018. All rights reserved.