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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    provides next identifier the SCOPE is retrieved from pathInfo
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class jakarta.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 logging
      scope - - scope id
      blockSize - - block size or 0 to pick only one id
      Returns:
      Throws:
      Exception