@Singleton public class TomcatServer extends AbstractServletServer<org.apache.catalina.startup.Tomcat>
EmbeddedServer for Tomcat.| Constructor and Description |
|---|
TomcatServer(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration,
org.apache.catalina.startup.Tomcat tomcat)
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 TomcatServer(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration,
org.apache.catalina.startup.Tomcat tomcat)
applicationContext - The contextapplicationConfiguration - The configurationtomcat - The tomcat instanceprotected void startServer()
throws java.lang.Exception
AbstractServletServerstartServer in class AbstractServletServer<org.apache.catalina.startup.Tomcat>java.lang.Exception - when an error occurred starting the serverprotected void stopServer()
throws java.lang.Exception
AbstractServletServerstopServer in class AbstractServletServer<org.apache.catalina.startup.Tomcat>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()