private static class EmbeddedWebAppHandler.EmbeddedPageHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
basePath
The base path for this handler.
|
private java.lang.String[] |
options
The spawned client's configuration options.
|
Constructor and Description |
---|
EmbeddedPageHandler(java.lang.String basePath)
Create and initialize this handler with the given base path.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(java.lang.String target,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Code to process web requests.
|
private java.lang.String[] |
loadTemplate(java.lang.String path)
Loads the target resource template by lines.
|
destroy, doStart, doStop, dumpThis, getServer, setServer
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
private final java.lang.String basePath
private java.lang.String[] options
public EmbeddedPageHandler(java.lang.String basePath)
basePath
- The base path to serve the requests.public void handle(java.lang.String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
private java.lang.String[] loadTemplate(java.lang.String path)
path
- The target resource path within jar file.