Top Description Fields Constructors Methods
io.undertow.servlet.handlers

public Class ServletHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
java.io.IOException, jakarta.servlet.Servlet, .ServletException, .ServletRequest, .ServletResponse, .UnavailableException, io.undertow.server.HttpServerExchange, .HttpHandler, io.undertow.servlet.UndertowServletLogger, io.undertow.servlet.api.InstanceHandle, io.undertow.servlet.core.ManagedServlet, io.undertow.util.StatusCodes

The handler that is responsible for invoking the servlet

Todo

do we want to move lifecycle considerations out of this handler?

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ManagedServlet

Constructor Summary

AccessConstructor and Description
public
ServletHandler(final ManagedServlet managedServlet)

Method Summary

Modifier and TypeMethod and Description
public ManagedServlet
public void
handleRequest(final HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

managedServletback to summary
private final ManagedServlet managedServlet

Constructor Detail

ServletHandlerback to summary
public ServletHandler(final ManagedServlet managedServlet)

Method Detail

getManagedServletback to summary
public ManagedServlet getManagedServlet()
handleRequestback to summary
public void handleRequest(final HttpServerExchange exchange) throws IOException, ServletException

Implements io.undertow.server.HttpHandler.handleRequest.

Doc from io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Parameters
exchange:HttpServerExchange

the HTTP request/response exchange

Annotations
@Override