public class WebServiceRule extends AbstractSequencerRule
cleanAfterGet, localNVU
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
WebServiceRule() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createPayload(java.lang.String type,
java.lang.String body,
java.lang.String separator)
Split the payload into name value pairs if the payload type is APPLICATION_X_WWW_FORM_URLENCODED
|
void |
execute()
The execute method.
|
NameValueUnit[][] |
getValue()
The getValue method, return the values of the
AbstractSequencerRule.localNVU field. |
void |
init()
Initialize the work.
|
void |
setValue(NameValueUnit[][] nvu)
The setValue, change the values.
|
void |
terminate()
The terminate method reset the private variables.
|
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
public void init() throws InitializationFailedException
AbstractImplementation
init
in interface ImplementationIF
init
in class AbstractSequencerRule
InitializationFailedException
- if the initialization fails.public NameValueUnit[][] getValue() throws RuleException
AbstractSequencerRule
AbstractSequencerRule.localNVU
field.
If rule property 'CLEANAFTERGET' was set to true,
the nvu field of the rule is wiped to clear memory.getValue
in interface RuleIF
getValue
in class AbstractSequencerRule
RuleException
RuleIF.getValue()
public void setValue(NameValueUnit[][] nvu) throws RuleException
nvu
- The name value of the rule.RuleException
public void execute() throws ExecutableException
execute
in interface ExecutableIF
execute
in class AbstractSequencerRule
ExecutableException
- if execution fails.AbstractRule.execute()
public void terminate() throws TerminationException
terminate
in interface ExecutableIF
terminate
in class AbstractSequencerRule
TerminationException
- if termination fails.AbstractRule.terminate()
protected final java.lang.String createPayload(java.lang.String type, java.lang.String body, java.lang.String separator) throws ExecutableException
type
- The payload typebody
- The payloadseparator
- The separator used to split the bodyExecutableException