public class EmbeddedWebHandler extends WebDriverHandler
/embedded, where /embedded/fwd will serve content from the
com/goldencode/p2j/ui/client/gui/driver/web/res/ package and the
/embedded/custom will server content from the embedded/ sub-package
of the application's package root (as retrieved via SourceNameMapper.getPackageRoot().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 |
EMBEDDED_RES_PATH
The path for the embedded base web resources.
|
private static java.lang.String |
HTML_PARTIAL_HTML_FILENAME
The filename of the resource for the login page partial.
|
private static CentralLogger |
LOG
Logger.
|
protected static java.lang.String |
PLACEHOLDER_EMBEDDED_PATH
Template placeholder for the embedded context path.
|
protected static java.lang.String |
PLACEHOLDER_WEBRES_PATH
Template placeholder for the context path before /webres.
|
private static java.lang.String |
TARGET_EMBEDDED_CONFIGS
The path to for the embedded configs.
|
private static java.lang.String |
TARGET_EMBEDDED_CUSTOM
The path for the embedded custom resources.
|
private static java.lang.String |
TARGET_EMBEDDED_RES
The path for the embedded base web resources.
|
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 |
|---|
EmbeddedWebHandler()
Private constructor for EmbeddedWebHandle.
|
| Modifier and Type | Method and Description |
|---|---|
private static org.eclipse.jetty.server.handler.ContextHandler |
createContextHandler(java.lang.String context,
java.lang.String resPath)
Creates a new context handler serving class path resources from the given path.
|
void |
handle(java.lang.String target,
org.eclipse.jetty.server.Request base,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes embedded web requests.
|
private void |
handleStatic(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String clientUrl)
Handles HTTP requests for static resources, i.e.
|
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 CentralLogger LOG
private static final java.lang.String TARGET_EMBEDDED_CONFIGS
private static final java.lang.String TARGET_EMBEDDED_CUSTOM
private static final java.lang.String TARGET_EMBEDDED_RES
private static final java.lang.String EMBEDDED_RES_PATH
private static final java.lang.String HTML_PARTIAL_HTML_FILENAME
protected static final java.lang.String PLACEHOLDER_EMBEDDED_PATH
WebDriverHandler.TARGET_EMBEDDED.protected static final java.lang.String PLACEHOLDER_WEBRES_PATH
WebDriverHandler.PLACEHOLDER_PROXY_PATH that can be omitted with
WebDriverHandler.REMOVE_PROXY_PATH_IN_WEB_PAGES.EmbeddedWebHandler()
private static org.eclipse.jetty.server.handler.ContextHandler createContextHandler(java.lang.String context,
java.lang.String resPath)
context - The context used to server the resources.resPath - The path were the resources reside.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 path.base - The HTTP request, Jetty style.request - The HTTP request.response - The HTTP response.private void handleStatic(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String clientUrl)
target - The target path.request - The HTTP request.response - The HTTP response.clientUrl - The spawned client URL.