public class ErrorServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private int |
status |
| Constructor and Description |
|---|
ErrorServlet(int status)
Sends a specific status code.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
private final int status
public ErrorServlet(int status)
status - the HTTP status code to always send.protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException