|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mortbay.servlet.NotFoundServlet
Not Found Servlet. Utility servlet to protect a URI by always responding with 404.
| Constructor Summary | |
NotFoundServlet()
|
|
| Method Summary | |
void |
doGet(HttpServletRequest req,
HttpServletResponse res)
|
void |
doPost(HttpServletRequest req,
HttpServletResponse res)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NotFoundServlet()
| Method Detail |
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
java.io.IOException
req - an HttpServletRequest object that
contains the request the client has made of the servletres - an HttpServletResponse object that
contains the response the servlet sends to the client
java.io.IOException - if an input or output error is
detected when the servlet handles the request
ServletException - if the request for the POST
could not be handledServletOutputStream,
ServletResponse.setContentType(java.lang.String)
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
java.io.IOException
req - an HttpServletRequest object that
contains the request the client has made of the servletres - an HttpServletResponse object that
contains the response the servlet sends to the client
ServletException - if the request for the GET
could not be handled
java.io.IOException - if an input or output error is
detected when the servlet handles the GET requestServletResponse.setContentType(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||