public class EmbeddedWebAppHandler
extends java.lang.Object
/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()
.Modifier and Type | Class and Description |
---|---|
private static class |
EmbeddedWebAppHandler.AuthWorker
The in-JVM authenticated client which will be used to spawn web clients.
|
private static class |
EmbeddedWebAppHandler.EmbeddedPageHandler
Implements the Jetty handler interface which calls the P2J server to spawn a web client and
then it will return a page that loads that client's interface in an IFRAME.
|
Modifier and Type | Field and Description |
---|---|
private static EmbeddedWebAppHandler.AuthWorker |
authWorker
The authentication worker - it authenticates an in-JVM FWD client, which will be used
to spawn FWD web clients.
|
private static java.util.logging.Logger |
LOG
Anonymous log instance.
|
private static java.lang.String |
pkgroot
The application's package root, in folder form.
|
Constructor and Description |
---|
EmbeddedWebAppHandler() |
Modifier and Type | Method and Description |
---|---|
private static org.eclipse.jetty.server.handler.ContextHandler |
createContextHandler(java.lang.String context,
java.lang.String path)
Create a new context handler serving class path resources from the given path.
|
static org.eclipse.jetty.server.handler.AbstractHandler |
initialize()
Initialize all the handlers for the embedded web app.
|
static void |
terminate()
Terminate the embedded web app.
|
private static final java.util.logging.Logger LOG
private static EmbeddedWebAppHandler.AuthWorker authWorker
private static java.lang.String pkgroot
public static void terminate()
public static org.eclipse.jetty.server.handler.AbstractHandler initialize()
private static org.eclipse.jetty.server.handler.ContextHandler createContextHandler(java.lang.String context, java.lang.String path)
context
- The context used to server the resources.path
- The class path were the resources reside.