|
||||||||||
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.talika.tarsis.servlets.AbstractServlet
public abstract class AbstractServlet
Base implementation of HttpServlet
for all web application servlets
of Tarsis MV Framework architecture.
Constructor Summary | |
---|---|
AbstractServlet()
|
Method Summary | |
---|---|
void |
destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called by the server 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 to allow a servlet to handle a POST request. |
protected Context |
getContext()
Returns the Tarsis context. |
protected Logger |
getLogger()
Returns the Tarsis logger. |
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
void |
init(javax.servlet.ServletConfig config)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
protected abstract void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes 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 |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- ServletConfig the ServletConfig
object that contains
configutation information for this servlet.
javax.servlet.ServletException
- if an exception occurs that interrupts the servlet's
normal operation.Servlet.init(javax.servlet.ServletConfig)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Servlet.destroy()
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
request
- servlet object that contains the request the client has made of
the servlet.response
- servlet object that contains the response the servlet sends to
the client.
javax.servlet.ServletException
- if the request could not be handled.
java.io.IOException
- if an input or output error is detected when the servlet
handles request.protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
request
- servlet object that contains the request the client has made of
the servlet.response
- servlet object that contains the response the servlet sends to
the client.
javax.servlet.ServletException
- if the request could not be handled.
java.io.IOException
- if an input or output error is detected when the servlet
handles request.protected abstract void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- servlet object that contains the request the client has made of
the servlet.response
- servlet object that contains the response the servlet sends to
the client.
javax.servlet.ServletException
- if the request could not be handled.
java.io.IOException
- if an input or output error is detected when the servlet
handles request.protected final Context getContext()
protected final Logger getLogger()
public final java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
Servlet.getServletInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |