public enum WebXml extends Enum<WebXml>
So far there are only methods for obtaining a mapping of all error page locations by exception type and the location of the FORM authentication login page.
Enum Constant and Description |
---|
INSTANCE
Returns the lazily loaded enum singleton instance.
|
Modifier and Type | Method and Description |
---|---|
String |
findErrorPageLocation(Throwable exception)
Find for the given exception the right error page location as per Servlet specification 10.9.2:
Make a first pass through all specific exception types.
|
Map<Class<Throwable>,String> |
getErrorPageLocations()
Returns a mapping of all error page locations by exception type.
|
String |
getFormLoginPage()
Returns the location of the FORM authentication login page, or
null if it is not defined. |
static WebXml |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebXml[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebXml INSTANCE
public static WebXml[] values()
for (WebXml c : WebXml.values()) System.out.println(c);
public static WebXml valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String findErrorPageLocation(Throwable exception)
exception
- The exception to find the error page location for.public Map<Class<Throwable>,String> getErrorPageLocations()
null
key.public String getFormLoginPage()
null
if it is not defined.null
if it is not defined.