Class 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
    • 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 pathInfo
      static 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
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WrsNextIdentifierServlet

        public WrsNextIdentifierServlet()
    • 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 class javax.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 logging
        scope - - scope id
        blockSize - - block size or 0 to pick only one id
        Returns:
        Throws:
        java.lang.Exception