Class SniffStepServlet

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

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

  • Constructor Details

    • SniffStepServlet

      public SniffStepServlet()
    • SniffStepServlet

      public SniffStepServlet(TransformationMap transformationMap)
  • Method Details

    • doGet

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

      /kettle/sniffStep

      GET

      Sniff metadata and data from the specified step of the specified transformation.

      Example Request:

          GET /kettle/sniffStep?trans=dummy-trans&step=tf&xml=Y&lines=10
          

      Parameters

      name description type
      trans Name of the transformation containing required step. query
      stepName Name of the transformation step to collect data for. query
      copynr Copy number of the step to be used for collecting data. If not provided 0 is used. integer, optional
      type Type of the data to be collected (input or output). If not provided output data is collected. query, optional
      xml Boolean flag which defines output format Y forces XML output to be generated. HTML is returned otherwise. boolean, optional
      id Carte id of the transformation to be used for step lookup. query, optional
      lines Number of lines to collect and include into response. If not provided 0 lines will be collected. integer, optional

      Response Body

      element: (custom)
      media types: text/xml, text/html

      Response XML or HTML response containing data and metadata of the step. If an error occurs during method invocation result field of the response will contain ERROR status.

      Example Response:

          <?xml version="1.0" encoding="UTF-8"?>
          <step-sniff>
            <row-meta>
              <value-meta>String
                normal
                Field1
                0
                -1
                tf
                
                
                .
                ,
                $
                none
                N
                N
                N
                Y
                en_US
                America/Bahia
                N
              </value-meta>
            </row-meta>
            10
      
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data </value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
            <row-data><value-data>my-data</value-data>
            </row-data>
          </step-sniff>
          

      Status Codes

      code description
      200 Request was processed.
      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