@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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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
AbstractServletServerstartServer in class AbstractServletServer<io.undertow.Undertow>java.lang.Exception - when an error occurred starting the serverprotected void stopServer()
throws java.lang.Exception
AbstractServletServerstopServer 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()