public class SniffStepServlet extends BaseHttpServlet implements CartePluginInterface
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PATH |
static String |
TYPE_INPUT |
static String |
TYPE_OUTPUT |
static String |
XML_TAG |
Constructor and Description |
---|
SniffStepServlet() |
SniffStepServlet(TransformationMap transformationMap) |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
getContextPath() |
String |
getService() |
String |
toString() |
convertContextPath, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode, setup
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
isJettyMode, setJettyMode, setup
public static final String CONTEXT_PATH
public static final String TYPE_INPUT
public static final String TYPE_OUTPUT
public static final String XML_TAG
public SniffStepServlet()
public SniffStepServlet(TransformationMap transformationMap)
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
Sniff metadata and data from the specified step of the specified transformation.
Example Request:
GET /kettle/sniffStep?trans=dummy-trans&step=tf&xml=Y&lines=10
name | description | type |
---|---|---|
trans | Name of the transformation containing required step. | query |
stepName | Name of the transformation step to collect data for. | query |
copynr | Copy number of the step to be used for collecting data. If not provided 0 is used. | integer, optional |
type | Type of the data to be collected (input or output ).
If not provided output data is collected. |
query, optional |
xml | Boolean flag which defines output format Y forces XML output to be generated.
HTML is returned otherwise. |
boolean, optional |
id | Carte id of the transformation to be used for step lookup. | query, optional |
lines | Number of lines to collect and include into response. If not provided 0 lines will be collected. | integer, optional |
element: | (custom) |
media types: | text/xml, text/html |
Response XML or HTML response containing data and metadata of the step.
If an error occurs during method invocation result
field of the response
will contain ERROR
status.
Example Response:
String normal Field1 0 -1 tf . , $ none N N N Y en_US America/Bahia N 10 my-data my-data my-data my-data my-data my-data my-data my-data my-data my-data
code | description |
---|---|
200 | Request was processed. |
500 | Internal server error occurs during request processing. |
doGet
in interface CartePluginInterface
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public String getService()
getService
in interface CarteServletInterface
public String getContextPath()
getContextPath
in interface CartePluginInterface