public class VirtualDesktopWebHandler extends WebDriverHandler
On GET method a web page containing an authentication form is returned to caller. The user should enter the user name and the password used to authenticate on the target client platform (Linux / Windows) and press the "Login" button to submit the form (which will submit/POST the form).
On POST method using the user submitted credentials a new web client process is spawned with the user's operating-system login environment. On web client URI notification the user's browser is redirected to this URI. If no response from the spawned client occurs within a specified amount of time, the authentication page is reloaded with an error message.
WebDriverHandler.SpawnerResult, WebDriverHandler.SsoUsers, WebDriverHandler.SupportedHttpCodeorg.eclipse.jetty.server.handler.HandlerCollection.Handlersorg.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.LifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
HTML_PARTIAL_HTML_FILENAME
The filename of the resource for the login page partial.
|
private static CentralLogger |
LOG
Logger.
|
private static java.lang.String |
PLACEHOLDER_IS_AUTO_LOGIN
Template placeholder for boolean flag indicating if auto-login is enabled.
|
AUTO_LOGIN_DATA, CLIENT_UUID_AUTHBLOB_PAIRS, CLIENT_UUID_DEVICEID_PAIRS, CLIENT_UUID_FWD_USERS, CLIENT_UUID_LOGIN_PARAMS, CLIENT_UUID_RELATED_SESSION_ID_PAIRS, CLIENT_UUID_SESS_DESCR_PAIRS, driverOptionsMap, ONE_BROWSER_POLICY, PAGE_TITLE_LOGIN, PAGE_TITLE_LOGOUT, PKG_RES_DIR, PKG_ROOT, PLACEHOLDER_HTML_TEMPLATE, PLACEHOLDER_PROXY_PATH, PLACEHOLDER_TITLE, PLACEHOLDER_VALUE_PAIRS, REMOVE_PROXY_PATH_IN_WEB_PAGES, TARGET_CHUI_LOGOUT, TARGET_CHUI_ROOT, TARGET_EMBEDDED, TARGET_GUI_LOGOUT, TARGET_GUI_ROOT, TRANSLATION_MANAGER| Constructor and Description |
|---|
VirtualDesktopWebHandler()
Private constructor for VirtualDesktopWebHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle Virtual Desktop HTTP requests.
|
private void |
handleLogoutRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
Handle POST /logout requests.
|
private java.lang.String |
loadLoginPartial(javax.servlet.http.HttpServletResponse response,
SsoAuthenticator ssoAuthenticator,
java.lang.String forwardedHost)
Tries to load the login form content from the custom root package and then the current FWD package
and returns the content of the file as string.
|
private void |
serveLandingPage(org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
Handles GET requests.
|
private void |
serveLogoutPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
Delivers the logout page.
|
filterOutValidLoginParams, getRequestParameters, getResPathCurrentDir, getServerProxyPath, getServerProxyPath, getSessionClientInterface, getSessionNetId, getSessionsByDeviceId, handleSessionFork, handleSsoAutoLogin, handleStartClientRequest, isSsoEnabled, loadPartial, resolveForwardedHost, sendError, serveHtml, serveStatic, setDeviceId, spawnWorkeraddHandler, destroy, expandChildren, getHandlers, newHandlers, prependHandler, removeHandler, setHandlers, updateHandlersdoShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServerdoError, doStart, doStop, getServeraddBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopprivate static final java.lang.String PLACEHOLDER_IS_AUTO_LOGIN
private static final CentralLogger LOG
private static final java.lang.String HTML_PARTIAL_HTML_FILENAME
VirtualDesktopWebHandler()
public void handle(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
handle in interface org.eclipse.jetty.server.Handlerhandle in class WebDriverHandlertarget - The target of the request - either a URI or a name.base - The HTTP request, Jetty style.request - The HTTP request.response - The HTTP response.private void handleLogoutRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
request - The object of the request.response - The object of the response.driverType - The client type as GUI / ChUI.private void serveLogoutPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
request - The HTTP request.response - The HTTP response.driverType - The client type as GUI / ChUI.private void serveLandingPage(org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebDriverType driverType)
base - The base request.request - The object of the request.response - The object of the response.driverType - The client type as GUI / ChUI.private java.lang.String loadLoginPartial(javax.servlet.http.HttpServletResponse response,
SsoAuthenticator ssoAuthenticator,
java.lang.String forwardedHost)
response - The HTTP response.ssoAuthenticator - The SSO Authenticator.forwardedHost - The proxy host.