public class JettyServer extends Object
ActionBase derived servlets.
Static RDF types by file extension can be enabled.| Modifier and Type | Class and Description |
|---|---|
static class |
JettyServer.Builder |
static class |
JettyServer.PlainErrorHandler
One line error handler
|
| Modifier and Type | Method and Description |
|---|---|
static JettyServer.Builder |
create() |
org.eclipse.jetty.server.Server |
getJettyServer()
Get the underlying Jetty server which has also been set up.
|
int |
getPort()
Return the port begin used.
|
javax.servlet.ServletContext |
getServletContext()
Get the
ServletContext. |
void |
join()
Wait for the server to exit.
|
JettyServer |
start()
Start the server - the server continues to run after this call returns.
|
void |
stop()
Stop the server.
|
public static JettyServer.Builder create()
public int getPort()
public org.eclipse.jetty.server.Server getJettyServer()
public javax.servlet.ServletContext getServletContext()
ServletContext.
Adding new servlets is possible with care.public JettyServer start()
join().public void stop()
public void join()
Licensed under the Apache License, Version 2.0