Class AddTransServlet

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

@Deprecated public class AddTransServlet extends BaseHttpServlet implements CartePluginInterface
Deprecated.
has been replaced by RegisterTransServlet
See Also:
  • Field Details

  • Constructor Details

    • AddTransServlet

      public AddTransServlet()
      Deprecated.
    • AddTransServlet

      public AddTransServlet(TransformationMap transformationMap, SocketRepository socketRepository)
      Deprecated.
  • Method Details

    • doGet

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

      /kettle/addTrans

      POST

      Uploads and executes transformation configuration XML file. Uploads xml file containing transformation and transformation_execution_configuration (wrapped in transformation_configuration tag) to be executed and executes it. Method relies on the input parameter to determine if xml or html reply should be produced. The transformation_configuration xml is transferred within request body. transformation name of the executed transformation will be returned in the Response object or message describing error occurred. To determine if the call successful or not you should rely on result parameter in response.

      Example Request:

          POST /kettle/addTrans/?xml=Y
          

      Request body should contain xml containing transformation_configuration (transformation and transformation_execution_configuration wrapped in transformation_configuration tag).

      Parameters

      name description type
      xml Boolean flag set to either Y or N describing if xml or html reply should be produced. boolean, optional

      Response Body

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

      Response wraps transformation name that was executed or error stack trace if an error occurred. Response has result OK if there were no errors. Otherwise it returns ERROR.

      Example Response:

          <?xml version="1.0" encoding="UTF-8"?>
          
            OK
            Transformation 'dummy-trans' was added to Carte with id eb4a92ff-6852-4307-9f74-3c74bd61f829
            eb4a92ff-6852-4307-9f74-3c74bd61f829
          
          

      Status Codes

      code description
      200 Request was processed and XML response is returned.
      400 Bad request. Malformed XML
      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()
      Deprecated.
      Overrides:
      toString in class Object
    • getService

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

      public String getContextPath()
      Deprecated.
      Specified by:
      getContextPath in interface CartePluginInterface
    • validateTransformation

      Deprecated.
      Throws:
      IOException
      ParserConfigurationException
      SAXException
      XPathExpressionException