public class DefaultMicronautServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_ATTRIBUTE
Attribute used to store the application context.
|
static java.lang.String |
NAME
The name of the servlet.
|
Constructor and Description |
---|
DefaultMicronautServlet()
Default constructor.
|
DefaultMicronautServlet(io.micronaut.context.ApplicationContext applicationContext)
Constructor that takes an application context.
|
Modifier and Type | Method and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
buildApplicationContext(io.micronaut.context.ApplicationContextBuilder builder) |
void |
destroy() |
void |
init() |
protected io.micronaut.context.ApplicationContextBuilder |
newApplicationContextBuilder() |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final java.lang.String NAME
public static final java.lang.String CONTEXT_ATTRIBUTE
public DefaultMicronautServlet(io.micronaut.context.ApplicationContext applicationContext)
applicationContext
- The application context.public DefaultMicronautServlet()
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
service
in class javax.servlet.http.HttpServlet
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void init()
init
in class javax.servlet.GenericServlet
protected io.micronaut.context.ApplicationContext buildApplicationContext(io.micronaut.context.ApplicationContextBuilder builder)
builder
- The builderprotected io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
ApplicationContext
builder