Class AddJobServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.pentaho.di.www.BaseHttpServlet
-
- org.pentaho.di.www.AddJobServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,CartePluginInterface,CarteServletInterface
@Deprecated public class AddJobServlet extends BaseHttpServlet implements CartePluginInterface
Deprecated.has been replaced by RegisterJobServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_PATHDeprecated.-
Fields inherited from class org.pentaho.di.www.BaseHttpServlet
detections, jobMap, log, socketRepository, transformationMap
-
-
Constructor Summary
Constructors Constructor Description AddJobServlet()Deprecated.AddJobServlet(JobMap jobMap, SocketRepository socketRepository)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated./**protected String[]getAllArgumentStrings(Map<String,String> arguments)Deprecated.StringgetContextPath()Deprecated.StringgetService()Deprecated.StringtoString()Deprecated.-
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, setup
-
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.www.CartePluginInterface
isJettyMode, setJettyMode, setup
-
-
-
-
Field Detail
-
CONTEXT_PATH
public static final String CONTEXT_PATH
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AddJobServlet
public AddJobServlet()
Deprecated.
-
AddJobServlet
public AddJobServlet(JobMap jobMap, SocketRepository socketRepository)
Deprecated.
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionDeprecated./**/kettle/addJob
POST
Uploads and executes job configuration XML file. Uploads xml file containing job and job_execution_configuration (wrapped in job_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 job_configuration xml is transferred within request body.
Job name of the executed jobwill 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/addJob/?xml=YRequest body should contain xml containing job_configuration (job + job_execution_configuration wrapped in job_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 job 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:
OK Job 'dummy_job' was added to the list with id 1e90eca8-4d4c-47f7-8e5c-99ec36525e7c 1e90eca8-4d4c-47f7-8e5c-99ec36525e7c Status Codes
code description 200 Request was processed and XML response is returned. 500 Internal server error occurs during request processing. - Specified by:
doGetin interfaceCartePluginInterface- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
getAllArgumentStrings
protected String[] getAllArgumentStrings(Map<String,String> arguments)
Deprecated.
-
getService
public String getService()
Deprecated.- Specified by:
getServicein interfaceCarteServletInterface
-
getContextPath
public String getContextPath()
Deprecated.- Specified by:
getContextPathin interfaceCartePluginInterface
-
-