Top Description Fields Constructors Methods
io.undertow.server.handlers.error

public Class SimpleErrorPageHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
java.util.Arrays, .Collections, .HashSet, .Set, io.undertow.Handlers, io.undertow.io.Sender, io.undertow.server.DefaultResponseListener, .HttpHandler, .HttpServerExchange, io.undertow.server.handlers.ResponseCodeHandler, io.undertow.util.Headers, .StatusCodes

Handler that generates an extremely simple no frills error page
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private volatile HttpHandler
private volatile Set<Integer>
responseCodes

The response codes that this handler will handle.

private final DefaultResponseListener

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public HttpHandler
public Set<Integer>
public void
handleRequest(final HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

public SimpleErrorPageHandler
setNext(final HttpHandler next)

public SimpleErrorPageHandler
setResponseCodes(final Set<Integer> responseCodes)

public SimpleErrorPageHandler
setResponseCodes(final Integer... responseCodes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private volatile HttpHandler next
responseCodesback to summary
private volatile Set<Integer> responseCodes

The response codes that this handler will handle. If this is null then it will handle all 4xx and 5xx codes.

responseListenerback to summary
private final DefaultResponseListener responseListener

Constructor Detail

SimpleErrorPageHandlerback to summary
public SimpleErrorPageHandler(final HttpHandler next)
SimpleErrorPageHandlerback to summary
public SimpleErrorPageHandler()

Method Detail

getNextback to summary
public HttpHandler getNext()
getResponseCodesback to summary
public Set<Integer> getResponseCodes()
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
setNextback to summary
public SimpleErrorPageHandler setNext(final HttpHandler next)
setResponseCodesback to summary
public SimpleErrorPageHandler setResponseCodes(final Set<Integer> responseCodes)
setResponseCodesback to summary
public SimpleErrorPageHandler setResponseCodes(final Integer... responseCodes)