Package de.businesscode.bcdui.web.wrs
Class WrsNextIdentifierServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.businesscode.bcdui.web.wrs.WrsNextIdentifierServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class WrsNextIdentifierServlet extends javax.servlet.http.HttpServlet
provides next identifier - table based id generator, binding-set: bcd_identifier- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrsNextIdentifierServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
provides next identifier the SCOPE is retrieved from pathInfostatic java.lang.String
getNextIdentifier(org.apache.logging.log4j.Logger log, java.lang.String scope, int blockSize)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
provides next identifier the SCOPE is retrieved from pathInfo- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
getNextIdentifier
public static java.lang.String getNextIdentifier(org.apache.logging.log4j.Logger log, java.lang.String scope, int blockSize) throws java.lang.Exception
- Parameters:
log
- - logger to use for loggingscope
- - scope idblockSize
- - block size or 0 to pick only one id- Returns:
- Throws:
java.lang.Exception
-
-