Package org.basex.http
Class BaseXServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.basex.http.BaseXServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
- Direct Known Subclasses:
RESTServlet,RestXqServlet,WebDAVServlet
public abstract class BaseXServlet
extends javax.servlet.http.HttpServlet
Base class for various servlets.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(javax.servlet.ServletConfig config) protected abstract voidrun(HTTPConnection conn) Runs the code.final voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
BaseXServlet
public BaseXServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
service
public final void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
IOException
-
run
Runs the code.- Parameters:
conn- HTTP connection- Throws:
Exception- any exception
-