Class NextSequenceValueServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.pentaho.di.www.BaseHttpServlet
org.pentaho.di.www.NextSequenceValueServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, CartePluginInterface, CarteServletInterface

public class NextSequenceValueServlet extends BaseHttpServlet implements CartePluginInterface
See Also:
  • Field Details

  • Constructor Details

    • NextSequenceValueServlet

      public NextSequenceValueServlet()
    • NextSequenceValueServlet

      public NextSequenceValueServlet(TransformationMap transformationMap)
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getService

      public String getService()
      Specified by:
      getService in interface CarteServletInterface
    • getContextPath

      public String getContextPath()
      Specified by:
      getContextPath in interface CartePluginInterface