|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.arch4j.webpresentation.FrontControllerServlet
This class is the root of a hierarchy of servlet-based classes that can be used as a front-end handler of requests to a web site.
| Constructor Summary | |
FrontControllerServlet()
|
|
| Method Summary | |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called by the server (via the service method) to
allow a servlet to handle a GET request. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called by the server (via the service method)
to allow a servlet to handle a POST request. |
protected void |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String target)
Forwards the request to another resource (servlet, JSP file, or HTML file) on the server. |
protected abstract void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles requests for both HTTP GET and POST methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FrontControllerServlet()
| Method Detail |
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service method) to
allow a servlet to handle a GET request.
doGet in class javax.servlet.http.HttpServletrequest - an HttpServletRequest object that
contains the request the client has made
of the servletresponse - an HttpServletResponse object that
contains the response the servlet sends
to the client
IOException - if an input or output error is
detected when the servlet handles
the GET request
javax.servlet.ServletException - if the request for the GET
could not be handled
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service method)
to allow a servlet to handle a POST request.
doPost in class javax.servlet.http.HttpServletrequest - an HttpServletRequest object that
contains the request the client has made
of the servletresponse - an HttpServletResponse object that
contains the response the servlet sends
to the client
IOException - if an input or output error is
detected when the servlet handles
the request
javax.servlet.ServletException - if the request for the POST
could not be handled
protected abstract void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
request - An HttpServletRequest object that
contains the request the client has made of the servlet.response - An HttpServletResponse object that
contains the response the servlet sends to the client.
javax.servlet.ServletException - If the request could not be handled.
IOException - If an input or output error is detected when the servlet handles the request.
protected void forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String target)
throws javax.servlet.ServletException,
IOException
request - An HttpServletRequest object that
contains the request the client has made of the servlet.response - An HttpServletResponse object that
contains the response the servlet sends to the client.target - A String specifying the pathname to the resource.
javax.servlet.ServletException - If the target resource throws this exception.
IOException - If the target resource throws this exception.
|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||