public abstract class RestSampleDataProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RestConnection |
connection |
protected org.mule.runtime.api.el.ExpressionLanguage |
expressionLanguage |
| Constructor and Description |
|---|
RestSampleDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
build(SampleDataResolverExpressionBuilder builder)
Allows building the sample data expression that will be executed by this value provider.
|
protected EvaluationContext |
buildEvaluationContext(EvaluationContextBuilderFactory evaluationContextBuilderFactory)
Allows child classes to configure the evaluation context.
|
protected Optional<EvaluationContext> |
getGlobalEvaluationContext()
Allows child classes to provide a global evaluation context.
|
String |
getId() |
org.mule.sdk.api.runtime.operation.Result<T,U> |
getSample() |
protected org.mule.sdk.api.runtime.operation.Result<InputStream,HttpResponseAttributes> |
transformOutputToResult(Object output)
Transforms the output of the sample data sequence expression to a result for the corresponding sample data type.
|
@Connection protected RestConnection connection
@Inject protected org.mule.runtime.api.el.ExpressionLanguage expressionLanguage
protected org.mule.sdk.api.runtime.operation.Result<InputStream,HttpResponseAttributes> transformOutputToResult(Object output)
output - The sequence data expression output.public String getId()
getId in interface org.mule.sdk.api.data.sample.SampleDataProvider<T,U>protected abstract void build(SampleDataResolverExpressionBuilder builder)
builder - An empty builder where the value provider that is going to be executed must be built.protected Optional<EvaluationContext> getGlobalEvaluationContext()
protected EvaluationContext buildEvaluationContext(EvaluationContextBuilderFactory evaluationContextBuilderFactory)
evaluationContextBuilderFactory - The operation evaluation context builder.public org.mule.sdk.api.runtime.operation.Result<T,U> getSample()
throws org.mule.sdk.api.data.sample.SampleDataException
getSample in interface org.mule.sdk.api.data.sample.SampleDataProvider<T,U>org.mule.sdk.api.data.sample.SampleDataExceptionCopyright © 2024. All rights reserved.