Package io.micronaut.servlet.jetty
Class JettyServer
java.lang.Object
io.micronaut.servlet.engine.server.AbstractServletServer<org.eclipse.jetty.server.Server>
io.micronaut.servlet.jetty.JettyServer
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextLifeCycle<io.micronaut.runtime.server.EmbeddedServer>,io.micronaut.context.ApplicationContextProvider,io.micronaut.context.LifeCycle,io.micronaut.runtime.EmbeddedApplication<io.micronaut.runtime.server.EmbeddedServer>,io.micronaut.runtime.server.EmbeddedServer,Closeable,AutoCloseable
An implementation of the
EmbeddedServer interface for Jetty.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionJettyServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, org.eclipse.jetty.server.Server server) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.servlet.engine.server.AbstractServletServer
getApplicationConfiguration, getApplicationContext, getServer, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.runtime.EmbeddedApplication
getEnvironment, isForceExitMethods inherited from interface io.micronaut.runtime.server.EmbeddedServer
getContextURI, isKeepAlive, isServerMethods inherited from interface io.micronaut.context.LifeCycle
close, refresh
-
Constructor Details
-
JettyServer
public JettyServer(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, org.eclipse.jetty.server.Server server) Default constructor.- Parameters:
applicationContext- The application contextapplicationConfiguration- The application configurationserver- The jetty server
-
-
Method Details
-
startServer
Description copied from class:AbstractServletServerStart the server.- Specified by:
startServerin classAbstractServletServer<org.eclipse.jetty.server.Server>- Throws:
Exception- when an error occurred starting the server
-
stopServer
Description copied from class:AbstractServletServerStop the server.- Specified by:
stopServerin classAbstractServletServer<org.eclipse.jetty.server.Server>- Throws:
Exception- when an error occurred stopping the server
-
getPort
public int getPort() -
getHost
-
getScheme
-
getURL
-
getURI
-
isRunning
public boolean isRunning()
-