public class PlainLauncher extends TestServlet
You need to set the class name of the WComponent you want to run. Do this by setting the parameter "bordertech.wcomponents.lde.component.to.launch" in your "local_app.properties" file. E.g.
ui.web.component.to.launch = com.github.bordertech.wcomponents.examples.picker.ExamplePicker
WServlet.WServletEnvironment, WServlet.WServletHelper| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_TO_LAUNCH_PARAM_KEY
The
configuration property key for which component to launch. |
protected static String |
SHOW_MEMORY_PROFILE_PARAM_KEY
The
configuration property key for whether to display the memory profile. |
AJAX_TRIGGER_PARAM_NAME, DATA_LIST_PARAM_NAME, STATIC_RESOURCE_PARAM_NAME, TARGET_ID_PARAM_NAME| Constructor and Description |
|---|
PlainLauncher() |
| Modifier and Type | Method and Description |
|---|---|
InterceptorComponent |
createInterceptorChain(Object request) |
protected WComponent |
createUI()
Creates the UI which the launcher displays.
|
protected String |
getComponentToLaunchClassName() |
WComponent |
getUI(Object httpServletRequest)
This method has been overridden to load a WComponent from parameters.
|
static void |
main(String[] args)
The entry point when the launcher is run as a java application.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override service in order to support persistant sessions.
|
addIndirectJar, createWebApp, getResourceDir, getThemeWebdocs, getUrl, getWebdocsDir, isRunning, isShutdownEnabled, registerServlets, run, service, shutDown, stopaddGenericHeaders, createServletHelper, handleError, init, serviceIntdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedpublic static final String COMPONENT_TO_LAUNCH_PARAM_KEY
configuration property key for which component to launch.protected static final String SHOW_MEMORY_PROFILE_PARAM_KEY
configuration property key for whether to display the memory profile.public WComponent getUI(Object httpServletRequest)
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class TestServletrequest - the request being processedresponse - the responsejavax.servlet.ServletException - a servlet exceptionIOException - an IO exceptionpublic InterceptorComponent createInterceptorChain(Object request)
createInterceptorChain in class WServletprotected WComponent createUI()
protected String getComponentToLaunchClassName()
Copyright © 2016. All rights reserved.