public class ErrorPageManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JSP_EXCEPTION |
static char[] |
MSIE_PADDING |
static java.lang.String |
SHUTDOWN |
Constructor and Description |
---|
ErrorPageManager(ServletService server)
Create error page manager.
|
ErrorPageManager(ServletService server,
Host host,
WebApp app)
Create error page manager.
|
ErrorPageManager(ServletService server,
WebApp webApp)
Create error page manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorPage(ErrorPage errorPage)
Adds an error page.
|
ErrorPageManager |
getParent()
Gets the manager parent.
|
protected boolean |
isDevelopmentModeErrorPage()
Returns true if we should return a development-friendly error page.
|
protected boolean |
isErrorPageServerId()
Returns true if we should return a development-friendly error page.
|
void |
sendError(CauchoRequest request,
CauchoResponse response,
int code,
java.lang.String message)
Sends an HTTP error to the browser.
|
void |
sendErrorImpl(CauchoRequest request,
CauchoResponse response,
int code,
java.lang.String message)
Sends an HTTP error to the browser.
|
void |
sendServletError(java.lang.Throwable e,
ServletRequest req,
ServletResponse res)
Displays a parse error.
|
void |
sendServletErrorImpl(java.lang.Throwable e,
ServletRequest req,
ServletResponse res) |
void |
setParent(ErrorPageManager parent)
Sets the manager parent.
|
void |
setWebAppContainer(WebAppContainer appContainer)
Sets the webApp container.
|
java.lang.String |
toString() |
public static final char[] MSIE_PADDING
public static java.lang.String JSP_EXCEPTION
public static java.lang.String SHUTDOWN
public ErrorPageManager(ServletService server)
public ErrorPageManager(ServletService server, WebApp webApp)
public ErrorPageManager(ServletService server, Host host, WebApp app)
public void setParent(ErrorPageManager parent)
public ErrorPageManager getParent()
public void addErrorPage(ErrorPage errorPage)
public void setWebAppContainer(WebAppContainer appContainer)
protected boolean isDevelopmentModeErrorPage()
protected boolean isErrorPageServerId()
public void sendServletError(java.lang.Throwable e, ServletRequest req, ServletResponse res) throws java.io.IOException
java.io.IOException
public void sendServletErrorImpl(java.lang.Throwable e, ServletRequest req, ServletResponse res) throws java.io.IOException
java.io.IOException
public void sendError(CauchoRequest request, CauchoResponse response, int code, java.lang.String message) throws java.io.IOException
code
- the HTTP error codemessage
- a string messagejava.io.IOException
public void sendErrorImpl(CauchoRequest request, CauchoResponse response, int code, java.lang.String message) throws java.io.IOException
code
- the HTTP error codemessage
- a string messagejava.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object