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
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 HTTPPATH option), 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-21, BSD License, Christian Gruen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.http.BaseXServlet
init, serviceMethods 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
-
RestXqServlet
public RestXqServlet()
-
-
Method Details
-
run
Description copied from class:BaseXServletRuns the code.- Specified by:
runin classBaseXServlet- Parameters:
conn- HTTP connection- Throws:
Exception- any exception
-