|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.server.webapp.ErrorPageManager
public class ErrorPageManager
Represents the final servlet in a filter chain.
Field Summary | |
---|---|
static java.lang.String |
JSP_EXCEPTION
|
static char[] |
MSIE_PADDING
|
static java.lang.String |
SHUTDOWN
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char[] MSIE_PADDING
public static java.lang.String JSP_EXCEPTION
public static java.lang.String SHUTDOWN
Constructor Detail |
---|
public ErrorPageManager(ServletService server)
public ErrorPageManager(ServletService server, WebApp webApp)
public ErrorPageManager(ServletService server, Host host, WebApp app)
Method Detail |
---|
public void setParent(ErrorPageManager parent)
public ErrorPageManager getParent()
public void addErrorPage(ErrorPage errorPage)
public void setWebAppContainer(WebAppContainer appContainer)
protected boolean isDevelopmentModeErrorPage()
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 message
java.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 message
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |