private static class EmbeddedWebAppHandler.EmbeddedPageHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
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, doError, doStart, doStop, getServer, setServer
addBean, 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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
handle
in interface org.eclipse.jetty.server.Handler
handle
in class org.eclipse.jetty.server.handler.AbstractHandler
java.io.IOException
javax.servlet.ServletException
private java.lang.String[] loadTemplate(java.lang.String path)
path
- The target resource path within jar file.