|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.boot.context.embedded.ErrorPage
public class ErrorPage
Simple container-independent abstraction for servlet error pages. Roughly equivalent to the <error-page> element traditionally found in web.xml.
| Constructor Summary | |
|---|---|
ErrorPage(Class<? extends Throwable> exception,
String path)
|
|
ErrorPage(org.springframework.http.HttpStatus status,
String path)
|
|
ErrorPage(String path)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Class<? extends Throwable> |
getException()
|
String |
getExceptionName()
The exception type name. |
String |
getPath()
The path to render (usually implemented as a forward), starting with "/". |
org.springframework.http.HttpStatus |
getStatus()
The HTTP status value that this error page matches. |
int |
getStatusCode()
The HTTP status value that this error page matches. |
int |
hashCode()
|
boolean |
isGlobal()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorPage(String path)
public ErrorPage(org.springframework.http.HttpStatus status,
String path)
public ErrorPage(Class<? extends Throwable> exception,
String path)
| Method Detail |
|---|
public String getPath()
public Class<? extends Throwable> getException()
public org.springframework.http.HttpStatus getStatus()
public int getStatusCode()
public String getExceptionName()
null if there is none)public boolean isGlobal()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||