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

public Class ErrorPages

extends Object
Class Inheritance
Imports
io.undertow.util.StatusCodes, java.util.Map, jakarta.servlet.ServletException

Class that maintains information about error page mappings.
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final String
private final Map<Integer, String>
private final Map<Class<? extends Throwable>, String>

Constructor Summary

AccessConstructor and Description
public
ErrorPages(final Map<Integer, String> errorCodeLocations, final Map<Class<? extends Throwable>, String> exceptionMappings, final String defaultErrorPage)

Method Summary

Modifier and TypeMethod and Description
public String
getErrorLocation(final int code)

public String
getErrorLocation(final Throwable exception)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultErrorPageback to summary
private final String defaultErrorPage
errorCodeLocationsback to summary
private final Map<Integer, String> errorCodeLocations
exceptionMappingsback to summary
private final Map<Class<? extends Throwable>, String> exceptionMappings

Constructor Detail

ErrorPagesback to summary
public ErrorPages(final Map<Integer, String> errorCodeLocations, final Map<Class<? extends Throwable>, String> exceptionMappings, final String defaultErrorPage)

Method Detail

getErrorLocationback to summary
public String getErrorLocation(final int code)
getErrorLocationback to summary
public String getErrorLocation(final Throwable exception)