| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.silverpeas.util.web.servlet.AbstractRestServlet
public abstract class AbstractRestServlet
| Constructor Summary | |
|---|---|
| AbstractRestServlet() | |
| Method Summary | |
|---|---|
| protected abstract  void | create(RestRequest request,
       javax.servlet.http.HttpServletResponse response)Dispatches client requests to the protected create method if it is a creation. | 
| protected abstract  void | delete(RestRequest request,
       javax.servlet.http.HttpServletResponse response)Dispatches client requests to the protected delete method if it is a deletion. | 
| protected abstract  void | find(RestRequest request,
     javax.servlet.http.HttpServletResponse response)Dispatches client requests to the protected find method if it is a search. | 
| protected  String | getServletRequestPath()The path element in the request used to call the servlet.This method might be overriden for each instance - otherwise it returns the initialization parameter "request_path". | 
| protected  void | service(javax.servlet.http.HttpServletRequest request,
        javax.servlet.http.HttpServletResponse response) | 
| protected abstract  void | update(RestRequest request,
       javax.servlet.http.HttpServletResponse response)Dispatches client requests to the protected update method if it is an update. | 
| Methods inherited from class javax.servlet.http.HttpServlet | 
|---|
| doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 | 
| Constructor Detail | 
|---|
public AbstractRestServlet()
| Method Detail | 
|---|
protected String getServletRequestPath()
protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
protected abstract void delete(RestRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
request - the rest request.response - - the HttpServletResponse object that contains the response the servlet returns
 to the client
javax.servlet.ServletException - - if the HTTP request cannot be handled.
IOException - - if an input or output error occurs while the servlet is handling the HTTP
 request .
protected abstract void create(RestRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
request - the rest request.response - - the HttpServletResponse object that contains the response the servlet returns
 to the client
javax.servlet.ServletException - - if the HTTP request cannot be handled.
IOException - - if an input or output error occurs while the servlet is handling the HTTP
 request .
protected abstract void update(RestRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
request - the rest request.response - - the HttpServletResponse object that contains the response the servlet returns
 to the client
javax.servlet.ServletException - - if the HTTP request cannot be handled.
IOException - - if an input or output error occurs while the servlet is handling the HTTP
 request .
protected abstract void find(RestRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
request - the rest request.response - - the HttpServletResponse object that contains the response the servlet returns
 to the client
javax.servlet.ServletException - - if the HTTP request cannot be handled.
IOException - - if an input or output error occurs while the servlet is handling the HTTP
 request .| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||