@Deprecated public class AddTransServlet extends BaseHttpServlet implements CartePluginInterface
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONTEXT_PATH
已过时。
|
detections, jobMap, log, socketRepository, transformationMap| 构造器和说明 |
|---|
AddTransServlet()
已过时。
|
AddTransServlet(TransformationMap transformationMap,
SocketRepository socketRepository)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
已过时。
|
String |
getContextPath()
已过时。
|
String |
getService()
已过时。
|
String |
toString()
已过时。
|
convertContextPath, doDelete, doPost, doPut, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode, setupdoHead, doOptions, doTrace, getLastModified, service, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisJettyMode, setJettyMode, setuppublic AddTransServlet()
public AddTransServlet(TransformationMap transformationMap, SocketRepository socketRepository)
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
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).
| name | description | type |
|---|---|---|
| xml | Boolean flag set to either Y or N describing if xml or html reply
should be produced. |
boolean, optional |
| 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:
OK
Transformation 'dummy-trans' was added to Carte with id eb4a92ff-6852-4307-9f74-3c74bd61f829
eb4a92ff-6852-4307-9f74-3c74bd61f829
| code | description |
|---|---|
| 200 | Request was processed and XML response is returned. |
| 500 | Internal server error occurs during request processing. |
doGet 在接口中 CartePluginInterfacedoGet 在类中 javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic String getService()
getService 在接口中 CarteServletInterfacepublic String getContextPath()
getContextPath 在接口中 CartePluginInterfaceCopyright © 2024 Hitachi Vantara. All rights reserved.