Package org.basex.http.restxq
Class RestXqServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.basex.http.BaseXServlet
-
- org.basex.http.restxq.RestXqServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public final class RestXqServlet extends BaseXServlet
This servlet receives and processes REST requests. The evaluated code is defined in XQuery modules, which are located in the web server's root directory (specified by the
HTTPPATHoption), and decorated with RESTXQ annotations.The implementation is based on Adam Retter's paper presented at XMLPrague 2012, titled "RESTful XQuery - Standardised XQuery 3.0 Annotations for REST".
- Author:
- BaseX Team 2005-23, BSD License, Christian Gruen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestXqServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrun(HTTPConnection conn)Runs the code.-
Methods inherited from class org.basex.http.BaseXServlet
init, service
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
run
protected void run(HTTPConnection conn) throws Exception
Description copied from class:BaseXServletRuns the code.- Specified by:
runin classBaseXServlet- Parameters:
conn- HTTP connection- Throws:
Exception- any exception
-
-