@Singleton public class UndertowServer extends AbstractServletServer<io.undertow.Undertow>
AbstractServletServer
for Undertow.Constructor and Description |
---|
UndertowServer(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration,
io.undertow.Undertow undertow)
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 UndertowServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.undertow.Undertow undertow)
applicationContext
- The app contextapplicationConfiguration
- The app configundertow
- The undertow instanceprotected void startServer() throws java.lang.Exception
AbstractServletServer
startServer
in class AbstractServletServer<io.undertow.Undertow>
java.lang.Exception
- when an error occurred starting the serverprotected void stopServer() throws java.lang.Exception
AbstractServletServer
stopServer
in class AbstractServletServer<io.undertow.Undertow>
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()