Class AddTransServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,CartePluginInterface,CarteServletInterface
- See Also:
-
Field Summary
FieldsFields inherited from class org.pentaho.di.www.BaseHttpServlet
detections, jobMap, log, socketRepository, transformationMap -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.AddTransServlet(TransformationMap transformationMap, SocketRepository socketRepository) Deprecated. -
Method Summary
Methods inherited from class org.pentaho.di.www.BaseHttpServlet
convertContextPath, doDelete, doPost, doPut, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode, setupMethods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.www.CartePluginInterface
isJettyMode, setJettyMode, setup
-
Field Details
-
CONTEXT_PATH
Deprecated.- See Also:
-
-
Constructor Details
-
AddTransServlet
public AddTransServlet()Deprecated. -
AddTransServlet
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 transformationwill be returned in the Response object ormessagedescribing error occurred. To determine if the call successful or not you should rely onresultparameter in response.Example Request:
POST /kettle/addTrans/?xml=YRequest 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 YorNdescribing 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
resultOK 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:
doGetin interfaceCartePluginInterface- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
toString
Deprecated. -
getService
Deprecated.- Specified by:
getServicein interfaceCarteServletInterface
-
getContextPath
Deprecated.- Specified by:
getContextPathin interfaceCartePluginInterface
-
validateTransformation
public void validateTransformation(InputStream is) throws IOException, ParserConfigurationException, SAXException, XPathExpressionException Deprecated.
-