public abstract class RestSampleDataProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RestConfiguration |
config |
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> |
transformOutputTypedValueResult(org.mule.sdk.api.runtime.operation.Result<org.mule.runtime.api.metadata.TypedValue<InputStream>,HttpResponseAttributes> output)
Transforms the output wrapped with a
TypedValue of the sample data sequence expression to a result for the
corresponding sample data type. |
@Config protected RestConfiguration config
@Connection protected RestConnection connection
@Inject protected org.mule.runtime.api.el.ExpressionLanguage expressionLanguage
protected org.mule.sdk.api.runtime.operation.Result<InputStream,HttpResponseAttributes> transformOutputTypedValueResult(org.mule.sdk.api.runtime.operation.Result<org.mule.runtime.api.metadata.TypedValue<InputStream>,HttpResponseAttributes> output)
TypedValue of the sample data sequence expression to a result for the
corresponding sample data type.output - The Result sequence data expression with output wrapped with a TypedValue.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.