public class RestMeta extends BaseStepMeta implements StepMetaInterface
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_TYPE_ATOM_XML |
static String |
APPLICATION_TYPE_FORM_URLENCODED |
static String |
APPLICATION_TYPE_JSON |
static String |
APPLICATION_TYPE_OCTET_STREAM |
static String |
APPLICATION_TYPE_SVG_XML |
static String |
APPLICATION_TYPE_TEXT_PLAIN |
static String |
APPLICATION_TYPE_TEXT_XML |
static String |
APPLICATION_TYPE_XHTML |
static String |
APPLICATION_TYPE_XML |
static String[] |
APPLICATION_TYPES |
static String |
HTTP_METHOD_DELETE |
static String |
HTTP_METHOD_GET |
static String |
HTTP_METHOD_HEAD |
static String |
HTTP_METHOD_OPTIONS |
static String |
HTTP_METHOD_PATCH |
static String |
HTTP_METHOD_POST |
static String |
HTTP_METHOD_PUT |
static String[] |
HTTP_METHODS |
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
Constructor and Description |
---|
RestMeta() |
Modifier and Type | Method and Description |
---|---|
void |
allocate(int nrheaders,
int nrparamers)
Deprecated.
|
void |
allocate(int nrheaders,
int nrparamers,
int nrmatrixparameters) |
void |
check(List<CheckResultInterface> remarks,
TransMeta transMeta,
StepMeta stepMeta,
RowMetaInterface prev,
String[] input,
String[] output,
RowMetaInterface info,
VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Checks the settings of this step and puts the findings in a remarks List.
|
Object |
clone()
Make an exact copy of this step, make sure to explicitly copy Collections etc.
|
String |
getApplicationType()
Getter
|
String |
getBodyField() |
String |
getFieldName() |
void |
getFields(RowMetaInterface inputRowMeta,
String name,
RowMetaInterface[] info,
StepMeta nextStep,
VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Gets the fields.
|
String[] |
getHeaderField() |
String[] |
getHeaderName() |
String |
getHttpLogin()
Getter
|
String |
getHttpPassword() |
String[] |
getMatrixParameterField() |
String[] |
getMatrixParameterName() |
String |
getMethod() |
String |
getMethodFieldName() |
String[] |
getParameterField() |
String[] |
getParameterName() |
String |
getProxyHost()
Getter
|
String |
getProxyPort()
Getter
|
String |
getResponseHeaderFieldName() |
String |
getResponseTimeFieldName() |
String |
getResultCodeFieldName() |
StepInterface |
getStep(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int cnr,
TransMeta transMeta,
Trans trans)
Get the executing step, needed by Trans to launch a step.
|
StepDataInterface |
getStepData()
Get a new instance of the appropriate data class.
|
String |
getTrustStoreFile() |
String |
getTrustStorePassword() |
String |
getUrl() |
String |
getUrlField() |
String |
getXML()
Produces the XML string that describes this step's information.
|
static boolean |
isActiveBody(String method) |
static boolean |
isActiveParameters(String method) |
boolean |
isDynamicMethod() |
boolean |
isPreemptive() |
boolean |
isUrlInField() |
void |
loadXML(Node stepnode,
List<DatabaseMeta> databases,
org.pentaho.metastore.api.IMetaStore metaStore)
Load the values for this step from an XML Node
|
void |
readRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId id_step,
List<DatabaseMeta> databases)
Read the steps information from a Kettle repository
|
void |
saveRep(Repository rep,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId id_transformation,
ObjectId id_step)
Save the steps data into a Kettle repository
|
void |
setApplicationType(String applicationType)
Setter
|
void |
setBodyField(String value) |
void |
setDefault()
Set default values
|
void |
setDynamicMethod(boolean dynamicMethod) |
void |
setFieldName(String resultName) |
void |
setHeaderField(String[] value) |
void |
setHeaderName(String[] value) |
void |
setHttpLogin(String httpLogin)
Setter
|
void |
setHttpPassword(String httpPassword)
Setter
|
void |
setMatrixParameterField(String[] value) |
void |
setMatrixParameterName(String[] value) |
void |
setMethod(String value) |
void |
setMethodFieldName(String methodFieldName) |
void |
setParameterField(String[] value) |
void |
setParameterName(String[] value) |
void |
setPreemptive(boolean preemptive) |
void |
setProxyHost(String proxyHost)
Setter
|
void |
setProxyPort(String proxyPort)
Setter
|
void |
setResponseHeaderFieldName(String responseHeaderFieldName) |
void |
setResponseTimeFieldName(String responseTimeFieldName) |
void |
setResultCodeFieldName(String resultCodeFieldName) |
void |
setTrustStoreFile(String trustStoreFile)
Setter
|
void |
setTrustStorePassword(String trustStorePassword)
Setter
|
void |
setUrl(String procedure) |
void |
setUrlField(String urlField) |
void |
setUrlInField(boolean urlInField) |
boolean |
supportsErrorHandling() |
analyseImpact, analyseImpact, cancelQueries, check, check, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyseImpact, analyseImpact, cancelQueries, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setParentStepMeta
public static final String[] APPLICATION_TYPES
public static final String APPLICATION_TYPE_TEXT_PLAIN
public static final String APPLICATION_TYPE_XML
public static final String APPLICATION_TYPE_JSON
public static final String APPLICATION_TYPE_OCTET_STREAM
public static final String APPLICATION_TYPE_XHTML
public static final String APPLICATION_TYPE_FORM_URLENCODED
public static final String APPLICATION_TYPE_ATOM_XML
public static final String APPLICATION_TYPE_SVG_XML
public static final String APPLICATION_TYPE_TEXT_XML
public static final String[] HTTP_METHODS
public static final String HTTP_METHOD_GET
public static final String HTTP_METHOD_POST
public static final String HTTP_METHOD_PUT
public static final String HTTP_METHOD_DELETE
public static final String HTTP_METHOD_HEAD
public static final String HTTP_METHOD_OPTIONS
public static final String HTTP_METHOD_PATCH
public String getMethod()
public void setMethod(String value)
value
- The method to set.public String getBodyField()
public void setBodyField(String value)
value
- The bodyField to set.public String[] getHeaderName()
public void setHeaderName(String[] value)
value
- The headerName to set.public String[] getParameterField()
public void setParameterField(String[] value)
value
- The parameterField to set.public String[] getParameterName()
public void setParameterName(String[] value)
value
- The parameterName to set.public String[] getMatrixParameterField()
public void setMatrixParameterField(String[] value)
value
- The matrixParameterField to set.public String[] getMatrixParameterName()
public void setMatrixParameterName(String[] value)
value
- The matrixParameterName to set.public String[] getHeaderField()
public void setHeaderField(String[] value)
value
- The headerField to set.public String getUrl()
public void setUrl(String procedure)
procedure
- The procedure to set.public boolean isUrlInField()
public void setUrlInField(boolean urlInField)
urlInField
- Is the url coded in a field?public boolean isPreemptive()
public void setPreemptive(boolean preemptive)
preemptive
- Ispreemptive?public boolean isDynamicMethod()
public void setDynamicMethod(boolean dynamicMethod)
dynamicMethod
- If the method is defined in a field?public String getMethodFieldName()
public void setMethodFieldName(String methodFieldName)
methodFieldName
- public String getUrlField()
public void setUrlField(String urlField)
urlField
- name of the field that contains the urlpublic String getFieldName()
public void setFieldName(String resultName)
resultName
- The resultName to set.public void loadXML(Node stepnode, List<DatabaseMeta> databases, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleXMLException
StepMetaInterface
loadXML
in interface StepMetaInterface
loadXML
in class BaseStepMeta
stepnode
- the Node to get the info fromdatabases
- The available list of databases to reference tometaStore
- the metastore to optionally load external reference metadata fromKettleXMLException
- When an unexpected XML error occurred. (malformed etc.)@Deprecated public void allocate(int nrheaders, int nrparamers)
public void allocate(int nrheaders, int nrparamers, int nrmatrixparameters)
public Object clone()
StepMetaInterface
clone
in interface StepMetaInterface
clone
in class BaseStepMeta
public void setDefault()
StepMetaInterface
setDefault
in interface StepMetaInterface
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleStepException
BaseStepMeta
getFields
in interface StepMetaInterface
getFields
in class BaseStepMeta
inputRowMeta
- the input row meta that is modified in this method to reflect the output row metadata of the stepname
- Name of the step to use as input for the origin field in the valuesinfo
- Fields used as extra lookup informationnextStep
- the next step that is targetedspace
- the space The variable space to use to replace variablesrepository
- the repository to use to load Kettle metadata objects impacting the output fieldsmetaStore
- the MetaStore to use to load additional external data or metadata impacting the output fieldsKettleStepException
- the kettle step exceptionpublic String getXML()
BaseStepMeta
getXML
in interface StepMetaInterface
getXML
in class BaseStepMeta
public void readRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases) throws KettleException
StepMetaInterface
readRep
in interface StepMetaInterface
readRep
in class BaseStepMeta
rep
- The repository to read frommetaStore
- The MetaStore to read external information fromid_step
- The step IDdatabases
- The databases to referenceKettleException
- When an unexpected error occurred (database, network, etc)public void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step) throws KettleException
StepMetaInterface
saveRep
in interface StepMetaInterface
saveRep
in class BaseStepMeta
rep
- The Kettle repository to save tometaStore
- the metaStore to optionally write toid_transformation
- The transformation IDid_step
- The step IDKettleException
- When an unexpected error occurred (database, network, etc)public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)
StepMetaInterface
check
in interface StepMetaInterface
check
in class BaseStepMeta
remarks
- The list to put the remarks in @see org.pentaho.di.core.CheckResultstepMeta
- The stepMeta to help checkingprev
- The fields coming from the previous stepinput
- The input step namesoutput
- The output step namesinfo
- The fields that are used as information by the stepspace
- the variable space to resolve variable expressions withrepository
- the repository to use to load Kettle metadata objects impacting the output fieldsmetaStore
- the MetaStore to use to load additional external data or metadata impacting the output fieldspublic StepInterface getStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans)
StepMetaInterface
getStep
in interface StepMetaInterface
stepMeta
- The step infostepDataInterface
- the step data interface linked to this step. Here the step can store temporary data, database connections,
etc.cnr
- The copy nr to gettransMeta
- The transformation infotrans
- The launching transformationpublic StepDataInterface getStepData()
StepMetaInterface
getStepData
in interface StepMetaInterface
public boolean supportsErrorHandling()
supportsErrorHandling
in interface StepMetaInterface
supportsErrorHandling
in class BaseStepMeta
public String getResultCodeFieldName()
public void setResultCodeFieldName(String resultCodeFieldName)
resultCodeFieldName
- the resultCodeFieldName to setpublic void setProxyHost(String proxyHost)
proxyHost
- public String getProxyHost()
public void setProxyPort(String proxyPort)
proxyPort
- public String getProxyPort()
public void setApplicationType(String applicationType)
applicationType
- public String getApplicationType()
public void setHttpLogin(String httpLogin)
httpLogin
- public String getHttpLogin()
public void setHttpPassword(String httpPassword)
httpPassword
- public String getHttpPassword()
public void setTrustStoreFile(String trustStoreFile)
trustStoreFile
- public String getTrustStoreFile()
public void setTrustStorePassword(String trustStorePassword)
trustStorePassword
- public String getTrustStorePassword()
public String getResponseTimeFieldName()
public void setResponseTimeFieldName(String responseTimeFieldName)
public String getResponseHeaderFieldName()
public void setResponseHeaderFieldName(String responseHeaderFieldName)
public static boolean isActiveBody(String method)
public static boolean isActiveParameters(String method)
Copyright © 2018 Hitachi Vantara. All rights reserved.