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

public Class SendErrorPageHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
io.undertow.server.HttpHandler, .HttpServerExchange, jakarta.servlet.http.HttpServletResponse

A handler that sends the servlet's error page if the status code is greater than 399
Author
Brad Wood

Field Summary

Modifier and TypeField and Description
private final HttpHandler

Constructor Summary

AccessConstructor and Description
public
SendErrorPageHandler(HttpHandler
The next handler to call if there is no error response
next
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
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

nextback to summary
private final HttpHandler next

Constructor Detail

SendErrorPageHandlerback to summary
public SendErrorPageHandler(HttpHandler next)

Construct a new instance.

Parameters
next:HttpHandler

The next handler to call if there is no error response

Method Detail

handleRequestback to summary
public void handleRequest(final HttpServerExchange exchange) throws Exception

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