info.magnolia.cms.servlets.MVCServlet
instead.@Deprecated public abstract class AbstractServlet extends javax.servlet.http.HttpServlet
main entry point
for handling POST and GET requests.Constructor and Description |
---|
AbstractServlet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Delegate POST requests to
processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) . |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Delegate GET requests to
processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) . |
abstract void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Subclass need implement this method in order to handle the request.
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Delegates to template method
handleRequest which
handles actual handling of the request. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
handleRequest
which
handles actual handling of the request. Additionally wraps exceptions other than IOException and ServletException
in a ServletException.request
- the request to handleresponse
- the associated responseIOException
- if an input or output error is detected when the servlet handles the requestjavax.servlet.ServletException
- if the request could not be handledpublic abstract void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the request to handleresponse
- the associated responseException
- if an exception occurs during request handlingCopyright © 2016 Magnolia International Ltd.. All rights reserved.