public class ComponentDemoServer extends Object
The startServer() method in this class opens a web server to
http://localhost:9998/ to serve all your demo views annotated with
@Route for development and integration testing. This class can
be extended for additional configuration.
| Constructor and Description |
|---|
ComponentDemoServer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Server server)
Hook for additional configuration to perform before starting the server.
|
protected int |
getPort()
Gets the port number to which this server will be connected.
|
org.eclipse.jetty.server.Server |
startServer()
Starts a web server to the port defined by
getPort(). |
public org.eclipse.jetty.server.Server startServer()
throws Exception
getPort(). It serves
the test UIs annotated with @Route.Exception - if any issue on server start occursprotected int getPort()
protected void configure(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Server server)
context - the contextserver - the serverCopyright © 2000–2025 Vaadin Ltd. All rights reserved.