public class BaseExceptionRenderer extends Object implements ExceptionRenderer
Modifier and Type | Field and Description |
---|---|
protected Pattern |
IMAGE_REGEX |
Constructor and Description |
---|
BaseExceptionRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
getCssErrorJsp() |
String |
getErrorJsp() |
String |
getImageErrorJsp() |
String |
getJavascriptErrorJsp() |
String |
getXmlErrorJsp() |
void |
renderException(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
WaybackRequest wbRequest,
WaybackException exception,
ResultURIConverter uriConverter)
Render the contents of a WaybackException in either html, javascript, or
css format, depending on the guessed context, so errors in embedded
documents do not cause unneeded errors in the embedding document.
|
protected boolean |
requestIsCSS(javax.servlet.http.HttpServletRequest httpRequest,
WaybackRequest wbRequest) |
protected boolean |
requestIsEmbedded(javax.servlet.http.HttpServletRequest httpRequest,
WaybackRequest wbRequest) |
protected boolean |
requestIsImage(javax.servlet.http.HttpServletRequest httpRequest,
WaybackRequest wbRequest) |
protected boolean |
requestIsJavascript(javax.servlet.http.HttpServletRequest httpRequest,
WaybackRequest wbRequest) |
void |
setCssErrorJsp(String cssErrorJsp) |
void |
setErrorJsp(String errorJsp) |
void |
setImageErrorJsp(String imageErrorJsp) |
void |
setJavascriptErrorJsp(String javascriptErrorJsp) |
void |
setXmlErrorJsp(String xmlErrorJsp) |
protected final Pattern IMAGE_REGEX
protected boolean requestIsEmbedded(javax.servlet.http.HttpServletRequest httpRequest, WaybackRequest wbRequest)
protected boolean requestIsImage(javax.servlet.http.HttpServletRequest httpRequest, WaybackRequest wbRequest)
protected boolean requestIsJavascript(javax.servlet.http.HttpServletRequest httpRequest, WaybackRequest wbRequest)
protected boolean requestIsCSS(javax.servlet.http.HttpServletRequest httpRequest, WaybackRequest wbRequest)
public void renderException(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, WaybackRequest wbRequest, WaybackException exception, ResultURIConverter uriConverter) throws javax.servlet.ServletException, IOException
ExceptionRenderer
renderException
in interface ExceptionRenderer
httpRequest
- from Servlet handlinghttpResponse
- from Servlet handlingwbRequest
- as parsed by RequestParserexception
- specific WaybackException subclass thrownuriConverter
- for the AccessPoint handling the requestjavax.servlet.ServletException
- per usualIOException
- per usualpublic String getErrorJsp()
public void setErrorJsp(String errorJsp)
public String getXmlErrorJsp()
public void setXmlErrorJsp(String xmlErrorJsp)
xmlErrorJsp
- the xmlErrorJsp to setpublic String getImageErrorJsp()
public void setImageErrorJsp(String imageErrorJsp)
public String getJavascriptErrorJsp()
public void setJavascriptErrorJsp(String javascriptErrorJsp)
public String getCssErrorJsp()
public void setCssErrorJsp(String cssErrorJsp)
Copyright © 2005–2015 IIPC. All rights reserved.