@Singleton public class DefaultServletHttpHandler extends ServletHttpHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
ServletHttpHandler
for the Servlet API.LOG
Constructor and Description |
---|
DefaultServletHttpHandler(io.micronaut.context.ApplicationContext applicationContext)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ServletExchange<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> |
createExchange(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the
DefaultServletExchange object. |
boolean |
isRunning() |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the give native request and response.
|
close, exchange, exchange, getApplicationContext, getMediaTypeCodecRegistry, service, start, stop
public DefaultServletHttpHandler(io.micronaut.context.ApplicationContext applicationContext)
applicationContext
- The application contextprotected ServletExchange<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> createExchange(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
ServletHttpHandler
DefaultServletExchange
object.createExchange
in class ServletHttpHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
request
- The requestresponse
- The responsepublic void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
ServletHttpHandler
service
in class ServletHttpHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
request
- The requestresponse
- The responsepublic boolean isRunning()
isRunning
in interface io.micronaut.context.LifeCycle<ServletHttpHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>>
isRunning
in class ServletHttpHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>