Package de.businesscode.bcdui.web.wrs
Class WrsServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.businesscode.bcdui.web.wrs.WrsServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class WrsServlet
extends jakarta.servlet.http.HttpServlet
Servlet for calling Wrs services
GET: It turns a WrsRequest into SQL and returns a Wrs document with wrs:R rows
POST: It turns a Wrs into updates of the database based on wrs:M wrs:D rows
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IDataWritercreateDataWriter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, IRequestOptions options) create data writerprotected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidinit(jakarta.servlet.ServletConfig config) protected voidtags a resource (which is set by pathInfo) with current millis, which is considered as a lastModified tag on that resourcestatic booleanwasResourceModified(String resourceUri, Long lastReadStamp) convenience methodstatic booleanwasResourceModified(String resourceUri, Date lastReadDate) convenience method to check if given resource has been modifiedMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
maxRowsDefault
protected int maxRowsDefault
-
-
Constructor Details
-
WrsServlet
public WrsServlet()WrsServlet
-
-
Method Details
-
getLastModifiedResourceMap
- Returns:
- the IMMUTABLE map containing lastModified resources with their timestamps
-
wasResourceModified
convenience method to check if given resource has been modified- Parameters:
resourceUri- Resource to be checkedlastReadDate- if this parameter is NULL the method returns TRUE as is assumes the resource has never been read- Returns:
- true if the given resource has been modified
-
wasResourceModified
convenience method- Parameters:
resourceUri- Resource to be checkedlastReadStamp- if this parameter is NULL the method returns TRUE as is assumes the resource has never been read- Returns:
- true if the given resource has been modified
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException- See Also:
-
GenericServlet.init(jakarta.servlet.ServletConfig)
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException- See Also:
-
HttpServlet.doGet(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
-
createDataWriter
protected IDataWriter createDataWriter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, IRequestOptions options) create data writer- Parameters:
request-response-options-- Returns:
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException- See Also:
-
HttpServlet.doPost(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
-
tagUpdate
tags a resource (which is set by pathInfo) with current millis, which is considered as a lastModified tag on that resource- Parameters:
resourceUri-
-