Class NextSequenceValueServlet

    • Constructor Detail

      • NextSequenceValueServlet

        public NextSequenceValueServlet()
      • NextSequenceValueServlet

        public NextSequenceValueServlet​(TransformationMap transformationMap)
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException

        /kettle/nextSequence

        GET

        Increments specified pre-configured sequence. Method is used for reserving a number of IDs and incrementing a sequence pre-configured in Carte server configuration by specified amount. If no increment value provided 10000 is used by default.

        Example Request:

            GET /kettle/nextSequence?name=test_seq
            

        Parameters

        name description type
        name name of the sequence specified in Carte configuration file. query
        increment (optional) parameter used for incrementing sequence. If no parameter specified 10000 is used by default. integer, optional

        Response Body

        text: HTML
        media types: text/xml

        Response XML containing sequence value and the increment value used.

        Example Response:

          57000010000
          

        Status Codes

        code description
        200 Request was processed.
        404 If the sequence was not found or error occurred during allocation
        500 Internal server error occurs during request processing.
        Specified by:
        doGet in interface CartePluginInterface
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException