Package org.pentaho.di.www
Class SniffStepServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.pentaho.di.www.BaseHttpServlet
-
- org.pentaho.di.www.SniffStepServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,CartePluginInterface
,CarteServletInterface
public class SniffStepServlet extends BaseHttpServlet implements CartePluginInterface
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_PATH
static String
TYPE_INPUT
static String
TYPE_OUTPUT
static String
XML_TAG
-
Fields inherited from class org.pentaho.di.www.BaseHttpServlet
detections, jobMap, log, socketRepository, transformationMap
-
-
Constructor Summary
Constructors Constructor Description SniffStepServlet()
SniffStepServlet(TransformationMap transformationMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
String
getContextPath()
String
getService()
String
toString()
-
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
- See Also:
- Constant Field Values
-
TYPE_INPUT
public static final String TYPE_INPUT
- See Also:
- Constant Field Values
-
TYPE_OUTPUT
public static final String TYPE_OUTPUT
- See Also:
- Constant Field Values
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SniffStepServlet
public SniffStepServlet()
-
SniffStepServlet
public SniffStepServlet(TransformationMap transformationMap)
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
/kettle/sniffStep
GET
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
Parameters
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
oroutput
). 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 Response Body
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 containERROR
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 Status Codes
code description 200 Request was processed. 500 Internal server error occurs during request processing. - Specified by:
doGet
in interfaceCartePluginInterface
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
getService
public String getService()
- Specified by:
getService
in interfaceCarteServletInterface
-
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interfaceCartePluginInterface
-
-