Package de.businesscode.bcdui.web.wrs
Class WrsNextIdentifierServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.businesscode.bcdui.web.wrs.WrsNextIdentifierServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class WrsNextIdentifierServlet
extends jakarta.servlet.http.HttpServlet
provides next identifier - table based id generator,
binding-set: bcd_identifier
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doPost
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) provides next identifier the SCOPE is retrieved from pathInfostatic String
getNextIdentifier
(org.apache.logging.log4j.Logger log, String scope, int blockSize) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
WrsNextIdentifierServlet
public WrsNextIdentifierServlet()
-
-
Method Details
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException provides next identifier the SCOPE is retrieved from pathInfo- Overrides:
doPost
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
getNextIdentifier
public static String getNextIdentifier(org.apache.logging.log4j.Logger log, String scope, int blockSize) throws Exception - Parameters:
log
- - logger to use for loggingscope
- - scope idblockSize
- - block size or 0 to pick only one id- Returns:
- Throws:
Exception
-