public abstract class RestPollingSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,HttpResponseAttributes>
| Modifier and Type | Field and Description |
|---|---|
protected RestConnection |
connection |
protected String |
identityExpression |
protected String |
itemsExpression |
protected String |
requestBodyExpression |
protected String |
watermarkExpression |
| Constructor and Description |
|---|
RestPollingSource(String itemsExpression,
String watermarkExpression,
String identityExpression,
String requestBodyExpression) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
protected org.mule.runtime.api.metadata.MediaType |
getDefaultResponseMediaType() |
protected String |
getId() |
protected abstract HttpRequestBinding |
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 org.mule.runtime.api.metadata.DataType |
getRequestBodyDataType() |
protected abstract RestRequestBuilder |
getRequestBuilder(String path)
Return a RequestBuilder configured to do the request to the endpoint this source must poll.
|
protected org.mule.runtime.api.metadata.DataType |
getWatermarkDataType() |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,HttpResponseAttributes> pollContext) |
protected RestConnection connection
protected final String watermarkExpression
protected final String identityExpression
protected final String itemsExpression
protected final String requestBodyExpression
protected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,HttpResponseAttributes>org.mule.runtime.api.exception.MuleExceptionprotected void doStop()
doStop in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,HttpResponseAttributes>protected abstract HttpRequestBinding getParameterBinding()
protected abstract org.mule.runtime.api.util.MultiMap<String,org.mule.runtime.api.metadata.TypedValue<?>> getParameterValues()
protected abstract String getPathTemplate()
protected abstract RestRequestBuilder getRequestBuilder(String path)
path - The request path with the placeholders replaced with its corresponding values.protected String getId()
public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,HttpResponseAttributes> pollContext)
poll in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,HttpResponseAttributes>protected org.mule.runtime.api.metadata.DataType getWatermarkDataType()
protected org.mule.runtime.api.metadata.DataType getRequestBodyDataType()
public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
onRejectedItem in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,HttpResponseAttributes>protected org.mule.runtime.api.metadata.MediaType getDefaultResponseMediaType()
Copyright © 2021. All rights reserved.