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.HttpServletBase class for various servlets.- Author:
- BaseX Team 2005-23, BSD License, Christian Gruen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseXServlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidinit(javax.servlet.ServletConfig config)protected abstract voidrun(HTTPConnection conn)Runs the code.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, service
-
-
-
-
Method Detail
-
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
protected abstract void run(HTTPConnection conn) throws Exception
Runs the code.- Parameters:
conn- HTTP connection- Throws:
Exception- any exception
-
-