Package eu.ill.webx
Class WebXClientConfiguration
java.lang.Object
eu.ill.webx.WebXClientConfiguration
Provides client connection configuration.
Used for requesting a new session (login) or connection to a running one (sessionId)
Standalone session passes directly to a standalone WebX Engine
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebXClientConfigurationForExistingSession(String sessionId) Returns a configuration containing a sessionId.static WebXClientConfigurationReturns a configuration containing login details default screen size (1920x1024) and keyboard layout ("gb") are used.static WebXClientConfigurationReturns a configuration containing login details, screen size.static WebXClientConfigurationForLogin(String username, String password, Integer screenWidth, Integer screenHeight, String keyboardLayout) Returns a configuration containing login details, screen size and keyboard layout.static WebXClientConfigurationReturns a configuration for a standalone session.Returns the keyboard layoutReturns the passwordReturns the screen heightReturns the screen widthReturns the session IdReturns the username
-
Method Details
-
ForLogin
public static WebXClientConfiguration ForLogin(String username, String password, Integer screenWidth, Integer screenHeight, String keyboardLayout) Returns a configuration containing login details, screen size and keyboard layout. This will result in a new session being created by the WebX Router (if there isn't one already running for the user).- Parameters:
username- The usernamepassword- The passwordscreenWidth- Desired screen width for a new X11 sessionscreenHeight- Desired screen height for a new X11 sessionkeyboardLayout- The requested keyboard layout- Returns:
- The WebXClientConfiguration
-
ForLogin
public static WebXClientConfiguration ForLogin(String username, String password, Integer screenWidth, Integer screenHeight) Returns a configuration containing login details, screen size. Keyboard layout is fixed at "gb". This will result in a new session being created by the WebX Router (if there isn't one already running for the user).- Parameters:
username- The usernamepassword- The passwordscreenWidth- Desired screen width for a new X11 sessionscreenHeight- Desired screen height for a new X11 session- Returns:
- The WebXClientConfiguration
-
ForLogin
Returns a configuration containing login details default screen size (1920x1024) and keyboard layout ("gb") are used. This will result in a new session being created by the WebX Router (if there isn't one already running for the user).- Parameters:
username- The usernamepassword- The password- Returns:
- The WebXClientConfiguration
-
ForExistingSession
Returns a configuration containing a sessionId. The WebX Router will attempt to connect to an existing session with an identical Id.- Parameters:
sessionId- Session Id of a running session.- Returns:
- The WebXClientConfiguration
-
ForStandaloneSession
Returns a configuration for a standalone session.- Returns:
- The WebXClientConfiguration
-
getUsername
Returns the username- Returns:
- The username
-
getPassword
Returns the password- Returns:
- The password
-
getScreenWidth
Returns the screen width- Returns:
- The screen width
-
getScreenHeight
Returns the screen height- Returns:
- The screen height
-
getKeyboardLayout
Returns the keyboard layout- Returns:
- The keyboard layout
-
getSessionId
Returns the session Id- Returns:
- The session Id
-