public abstract class TestServlet extends WServlet implements LdeLauncher
WServlet.WServletEnvironment, WServlet.WServletHelperAJAX_TRIGGER_PARAM_NAME, DATA_LIST_PARAM_NAME, STATIC_RESOURCE_PARAM_NAME, TARGET_ID_PARAM_NAME| Constructor and Description |
|---|
TestServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndirectJar(String jarname) |
protected org.eclipse.jetty.webapp.WebAppContext |
createWebApp(org.eclipse.jetty.server.Server srv)
Creates the Web app context to use in the LDE.
|
protected String[] |
getResourceDir() |
protected String[] |
getThemeWebdocs() |
String |
getUrl() |
protected String[] |
getWebdocsDir() |
boolean |
isRunning() |
protected boolean |
isShutdownEnabled()
Indicates whether remote LDE shutdown is enabled.
|
protected void |
registerServlets(org.eclipse.jetty.webapp.WebAppContext webapp)
Subclasses may override this to register additional servlets with the server.
|
void |
run()
Runs the server.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override service in order to support persistant sessions.
|
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res) |
protected void |
shutDown()
Attempts to shutdown an existing TestServlet, possibly in another VM.
|
void |
stop()
Stops the server.
|
addGenericHeaders, createInterceptorChain, createServletHelper, getUI, handleError, init, serviceIntdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedpublic void run()
throws Exception
run in interface LdeLauncherException - if the LDE fails to start.public void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws javax.servlet.ServletException,
IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void shutDown()
protected org.eclipse.jetty.webapp.WebAppContext createWebApp(org.eclipse.jetty.server.Server srv)
throws Exception
srv - the Jetty server.Exception - an exceptionpublic void stop()
throws InterruptedException
stop in interface LdeLauncherInterruptedException - an interrupted exceptionpublic boolean isRunning()
isRunning in interface LdeLauncherpublic String getUrl()
getUrl in interface LdeLauncherpublic void addIndirectJar(String jarname)
jarname - the jar name to addprotected String[] getWebdocsDir()
protected String[] getThemeWebdocs()
protected String[] getResourceDir()
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class WServletrequest - the request being processedresponse - the responsejavax.servlet.ServletException - a servlet exceptionIOException - an IO exceptionprotected void registerServlets(org.eclipse.jetty.webapp.WebAppContext webapp)
webapp - the webapp to register the servlets with.protected boolean isShutdownEnabled()
Copyright © 2016. All rights reserved.