@Singleton public class JettyServer extends AbstractServletServer<org.eclipse.jetty.server.Server>
EmbeddedServer
interface for Jetty.Constructor and Description |
---|
JettyServer(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration,
org.eclipse.jetty.server.Server server)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getScheme() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isRunning() |
protected void |
startServer()
Start the server.
|
protected void |
stopServer()
Stop the server.
|
getApplicationConfiguration, getApplicationContext, getServer, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JettyServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, org.eclipse.jetty.server.Server server)
applicationContext
- The application contextapplicationConfiguration
- The application configurationserver
- The jetty serverprotected void startServer() throws java.lang.Exception
AbstractServletServer
startServer
in class AbstractServletServer<org.eclipse.jetty.server.Server>
java.lang.Exception
- when an error occurred starting the serverprotected void stopServer() throws java.lang.Exception
AbstractServletServer
stopServer
in class AbstractServletServer<org.eclipse.jetty.server.Server>
java.lang.Exception
- when an error occurred stopping the serverpublic int getPort()
public java.lang.String getHost()
public java.lang.String getScheme()
public java.net.URL getURL()
public java.net.URI getURI()
public boolean isRunning()