public abstract class PaginatedBasedRestPollingSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,Object>
| Modifier and Type | Field and Description |
|---|---|
protected RestPagingProvider |
baseOperationPagingProvider |
protected RestConfiguration |
config |
protected RestConnection |
connection |
protected String |
eventExpression |
protected String |
identityExpression |
protected ConfigurationOverrides |
overrides |
protected String |
requestBodyExpression |
protected String |
startValueExpression |
protected String |
watermarkExpression |
| Constructor and Description |
|---|
PaginatedBasedRestPollingSource(String watermarkExpression,
String identityExpression,
String requestBodyExpression,
String eventExpression,
String startValueExpression) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doInstancesStart()
Start method to be overridden on each instance, at least making the baseOperationPagingProvider initialization.
|
protected void |
doStart() |
protected void |
doStop() |
protected RestConfiguration |
getConfig() |
protected RestConnection |
getConnection() |
protected org.mule.runtime.api.metadata.MediaType |
getDefaultResponseMediaType() |
protected org.mule.runtime.api.el.ExpressionLanguage |
getExpressionLanguage() |
protected String |
getId() |
protected abstract HttpRequestBinding |
getParameterBinding()
Returns the parameter binding configuration of this RestPollingSource.
|
protected abstract Map<String,Object> |
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 org.mule.runtime.api.metadata.TypedValue<?> |
getStartValue(org.mule.runtime.api.el.BindingContext bindingContext)
Returns the initial value start value will hold.
|
protected org.mule.runtime.api.metadata.DataType |
getWatermarkDataType() |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,Object> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,Object> pollContext) |
@Config protected RestConfiguration config
protected RestConnection connection
protected final String watermarkExpression
protected final String identityExpression
protected final String requestBodyExpression
protected final String eventExpression
protected final String startValueExpression
protected RestPagingProvider baseOperationPagingProvider
@ParameterGroup(name="Connector Overrides") protected ConfigurationOverrides overrides
protected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,Object>org.mule.runtime.api.exception.MuleExceptionprotected abstract void doInstancesStart()
protected org.mule.runtime.api.metadata.TypedValue<?> getStartValue(org.mule.runtime.api.el.BindingContext bindingContext)
bindingContext - the context to access the parameters, config or connection in the DW engineprotected void doStop()
doStop in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,Object>protected abstract HttpRequestBinding getParameterBinding()
protected abstract Map<String,Object> getParameterValues()
protected abstract String getPathTemplate()
protected String getId()
protected RestConfiguration getConfig()
protected org.mule.runtime.api.el.ExpressionLanguage getExpressionLanguage()
protected RestConnection getConnection()
public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,Object> pollContext)
poll in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,Object>protected org.mule.runtime.api.metadata.DataType getWatermarkDataType()
public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,Object> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
onRejectedItem in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,Object>protected org.mule.runtime.api.metadata.MediaType getDefaultResponseMediaType()
Copyright © 2023. All rights reserved.