org.objectweb.telosys.dal.rest
Class DAOServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.objectweb.telosys.common.TelosysServlet
org.objectweb.telosys.dal.rest.DAOServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class DAOServlet
- extends TelosysServlet
Servlet for DAO invocation in REST mode
URL Syntax examples :
http://localhost:8080/myapp/db/0/Author/load?Id=1
http://localhost:8080/myapp/db/0/Author/load.xml?Id=1
http://localhost:8080/myapp/db/0/Author/update?Id=1&FirstName=Mike&LastName=BUSH
NB : the bean name is case sensitive ( it is used to build the full class name )
- Since:
- 1.0.0
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAOServlet
public DAOServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException