Package de.xima.fc.servlet
Class GenericRESTServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.xima.fc.servlet.GenericRESTServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@WebServlet(name="GenericRESTServlet", urlPatterns={"/servlet/*","/rest/*"}, asyncSupported=true) public class GenericRESTServlet extends javax.servlet.http.HttpServlet
Generisches/Allgemeines Servlet für CRUD-Operation auf Entitäten- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description GenericRESTServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Nimmt Rest-Anfrage zum Löschen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
protected void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Nimmt Rest-Anfragen zum Lesen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
protected void
doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Nimmt Rest-Anfragen zum Anlegen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
protected void
doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Nimmt Rest-Anfrage zum Aktualisieren entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
-
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Nimmt Rest-Anfragen zum Lesen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Nimmt Rest-Anfragen zum Anlegen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doPut
protected void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Nimmt Rest-Anfrage zum Aktualisieren entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
- Overrides:
doPut
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doDelete
protected void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Nimmt Rest-Anfrage zum Löschen entgegen, Weiterleitung zuhandleRequest(HttpServletRequest, HttpServletResponse)
- Overrides:
doDelete
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doOptions
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-