public abstract class RestValueProvider extends Object implements org.mule.runtime.extension.api.values.ValueProvider
ValueProvider that consumes a remote endpoint and extracts the values and its names using the
provided expressions.| Modifier and Type | Field and Description |
|---|---|
protected RestConnection |
connection |
protected String |
itemNameExpression |
protected String |
itemsExpression |
protected String |
itemValueExpression |
| Constructor and Description |
|---|
RestValueProvider(String itemsExpression,
String itemValueExpression,
String itemNameExpression) |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.runtime.api.metadata.MediaType |
getDefaultResponseMediaType() |
protected abstract RequestParameterBinding |
getParameterBinding()
Returns the parameter binding configuration of this RestPollingSource.
|
protected abstract org.mule.runtime.api.util.MultiMap<String,org.mule.runtime.api.metadata.TypedValue<?>> |
getParameterValues()
Returns a MultiMap containing all the parameters this source exposes to the user.
|
protected abstract String |
getPathTemplate()
Returns the request path for this RestPollingSource with placeholders for its uri parameters.
|
protected abstract RestRequestBuilder |
getRequestBuilder(String path)
Return a RequestBuilder configured to do the request to the endpoint this source must poll.
|
Set<org.mule.runtime.api.value.Value> |
resolve() |
@Connection protected RestConnection connection
protected final String itemsExpression
protected final String itemValueExpression
protected final String itemNameExpression
protected abstract RequestParameterBinding getParameterBinding()
protected abstract String getPathTemplate()
protected abstract RestRequestBuilder getRequestBuilder(String path)
path - The request path with the placeholders replaced with its corresponding values.protected abstract org.mule.runtime.api.util.MultiMap<String,org.mule.runtime.api.metadata.TypedValue<?>> getParameterValues()
public Set<org.mule.runtime.api.value.Value> resolve() throws org.mule.runtime.extension.api.values.ValueResolvingException
resolve in interface org.mule.runtime.extension.api.values.ValueProviderorg.mule.runtime.extension.api.values.ValueResolvingExceptionprotected org.mule.runtime.api.metadata.MediaType getDefaultResponseMediaType()
Copyright © 2021. All rights reserved.