@Deprecated public class AddExportServlet extends BaseHttpServlet implements CartePluginInterface
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONTEXT_PATH
已过时。
|
static String |
PARAMETER_LOAD
已过时。
|
static String |
PARAMETER_TYPE
已过时。
|
static String |
TYPE_JOB
已过时。
|
static String |
TYPE_TRANS
已过时。
|
detections, jobMap, log, socketRepository, transformationMap| 构造器和说明 |
|---|
AddExportServlet()
已过时。
|
AddExportServlet(JobMap jobMap,
TransformationMap transformationMap)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 AddExportServlet()
public AddExportServlet(JobMap jobMap, TransformationMap transformationMap)
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
Returns the list of users in the platform. This list is in an xml format as shown in the example response.
Uploads and executes previously exported job or transformation.
Uploads zip file containing job or transformation to be executed and executes it.
Method relies on the input parameters to find the entity to be executed. The archive is
transferred within request body.
File url of the executed entity will be returned in the Response object
or message describing error occurred. To determine if the call is successful
rely on result parameter in response.
Example Request:
POST /kettle/addExport/?type=job&load=dummy_job.kjb
Request body should contain zip file prepared for Carte execution.
| name | description | type |
|---|---|---|
| type | The type of the entity to be executed either job or trans. |
query |
| load | The name of the entity within archive to be executed. | query |
| element: | (custom) |
| media types: | application/xml |
Response wraps file url of the entity 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
zip:file:///temp/export_ee2a67de-6a72-11e4-82c0-4701a2bac6a5.zip!dummy_job.kjb
74cf4219-c881-4633-a71a-2ed16b7db7b8
| 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.