Class SwingInstanceManagerImpl
- java.lang.Object
-
- org.webswing.server.base.AbstractUrlHandler
-
- org.webswing.server.base.PrimaryUrlHandler
-
- org.webswing.server.services.swingmanager.SwingInstanceManagerImpl
-
- All Implemented Interfaces:
UrlHandler,org.webswing.server.common.model.meta.ConfigContext,org.webswing.server.services.security.api.SecurityContext,SecuredPathHandler,SecurableService,SwingInstanceManager
public class SwingInstanceManagerImpl extends PrimaryUrlHandler implements SwingInstanceManager
-
-
Field Summary
-
Fields inherited from class org.webswing.server.base.PrimaryUrlHandler
configService, JAVASCRIPT_NLS_PREFIX, securityModuleService, varSubs
-
-
Constructor Summary
Constructors Constructor Description SwingInstanceManagerImpl(UrlHandler parent, String path, SwingInstanceService instanceFactory, WebSocketService websocket, FileTransferHandlerService fileService, LoginHandlerService loginService, ResourceHandlerService resourceService, SecurityModuleService securityModuleService, ConfigurationService configService, StatisticsLoggerService loggerService, ExtensionService extService, RestService restService, SwingInstanceHolder instanceHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectView(org.webswing.model.c2s.ConnectionHandshakeMsgIn handshake, WebSocketConnection r)voiddestroy()ApplicationInfoMsggetApplicationInfoMsg()List<SwingInstanceManager>getApplications()protected StringgetPath()StringgetRecordingsDirPath()StatisticsReadergetStatsReader()SwingInstanceHoldergetSwingInstanceHolder()voidinit()booleanisUserAuthorized()protected voidkillAll()voidlogStatValue(String instance, String name, Number value)voidnotifySwingClose(SwingInstance swingInstance)-
Methods inherited from class org.webswing.server.base.PrimaryUrlHandler
disable, generateCsrfToken, get, getAdminUrl, getConfig, getFromSecuritySession, getSecurityConfig, getStatus, getSwingConfig, getVariableMap, getWebResource, initConfiguration, isEnabled, isOriginAllowed, isSameOrigin, isSubPath, replaceVariables, resolveFile, serve, setToSecuritySession, validateCsrfToken
-
Methods inherited from class org.webswing.server.base.AbstractUrlHandler
checkMasterPermission, checkPermission, checkPermissionLocalOrMaster, getFullPathMapping, getLastModified, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler, secureServe, toPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.webswing.server.services.security.login.SecuredPathHandler
get, getPathMapping, initConfiguration, isEnabled
-
Methods inherited from interface org.webswing.server.services.security.api.SecurityContext
getSecuredPath
-
Methods inherited from interface org.webswing.server.services.swingmanager.SwingInstanceManager
disable, getConfig, resolveFile
-
Methods inherited from interface org.webswing.server.base.UrlHandler
checkMasterPermission, checkPermission, getFullPathMapping, getLastModified, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler, serve
-
-
-
-
Constructor Detail
-
SwingInstanceManagerImpl
public SwingInstanceManagerImpl(UrlHandler parent, String path, SwingInstanceService instanceFactory, WebSocketService websocket, FileTransferHandlerService fileService, LoginHandlerService loginService, ResourceHandlerService resourceService, SecurityModuleService securityModuleService, ConfigurationService configService, StatisticsLoggerService loggerService, ExtensionService extService, RestService restService, SwingInstanceHolder instanceHolder)
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceUrlHandler- Overrides:
initin classPrimaryUrlHandler
-
destroy
public void destroy()
- Specified by:
destroyin interfaceUrlHandler- Overrides:
destroyin classPrimaryUrlHandler
-
getPath
protected String getPath()
- Specified by:
getPathin classAbstractUrlHandler
-
connectView
public void connectView(org.webswing.model.c2s.ConnectionHandshakeMsgIn handshake, WebSocketConnection r)- Specified by:
connectViewin interfaceSwingInstanceManager
-
killAll
protected void killAll()
- Overrides:
killAllin classPrimaryUrlHandler
-
notifySwingClose
public void notifySwingClose(SwingInstance swingInstance)
- Specified by:
notifySwingClosein interfaceSwingInstanceManager
-
getApplications
public List<SwingInstanceManager> getApplications()
- Specified by:
getApplicationsin classPrimaryUrlHandler
-
getApplicationInfoMsg
public ApplicationInfoMsg getApplicationInfoMsg()
- Specified by:
getApplicationInfoMsgin interfaceSwingInstanceManager
-
logStatValue
public void logStatValue(String instance, String name, Number value)
- Specified by:
logStatValuein interfaceSwingInstanceManager
-
getStatsReader
public StatisticsReader getStatsReader()
- Specified by:
getStatsReaderin interfaceSwingInstanceManager
-
isUserAuthorized
public boolean isUserAuthorized()
- Specified by:
isUserAuthorizedin interfaceSwingInstanceManager
-
getSwingInstanceHolder
public SwingInstanceHolder getSwingInstanceHolder()
- Specified by:
getSwingInstanceHolderin interfaceSwingInstanceManager
-
getRecordingsDirPath
public String getRecordingsDirPath()
- Specified by:
getRecordingsDirPathin interfaceSwingInstanceManager
-
-