T - underlying source listener message typeA - underlying source listener message attributes typepublic abstract class MessageListenerHandler<T,A> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected amf.apicontract.client.platform.AMFElementClient |
amfElementClient |
protected amf.apicontract.client.platform.model.domain.api.AsyncApi |
api |
protected List<Binding> |
asyncBindings |
protected AsyncConfig |
asyncConfig |
protected String |
channelName |
protected org.mule.runtime.api.component.location.ComponentLocation |
componentLocation |
protected String |
defaultEncoding |
protected boolean |
disableValidation |
protected SourceCallbackRegistry |
registry |
static String |
RESULT_HANDLER_CTX_KEY |
protected String |
serverName |
| Constructor and Description |
|---|
MessageListenerHandler(amf.apicontract.client.platform.model.domain.api.AsyncApi api,
SourceCallbackRegistry registry,
AsyncConfig config,
amf.apicontract.client.platform.AMFElementClient amfElementClient,
boolean disableValidation,
String serverName,
String channelName,
List<Binding> asyncBindings,
String defaultEncoding) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AsyncMessageAttributes |
buildResultAttributes(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result,
String specChannel)
Build the message attributes out of the underlying connector result attributes
|
protected abstract InputStream |
buildResultOutput(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result)
Build the message payload out of the underlying connector result content
|
abstract void |
configureSourceListener(org.mule.runtime.extension.api.client.source.SourceParameterizer sourceParameterizer)
Configure the underlying source listener
|
void |
consumeSourceListenerResult(org.mule.runtime.extension.api.client.source.SourceResultHandler<T,A> sourceResultHandler)
Route the received message to the corresponding mule-flow, using the topic name from message attributes
|
String |
getChannelName() |
protected abstract String |
getRuntimeChannelName(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result)
Obtain the channel name from the message received
|
String |
getServerName() |
abstract String |
getSourceListenerName()
Obtain the underlying source listener name
|
void |
setComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation) |
public static final String RESULT_HANDLER_CTX_KEY
protected final amf.apicontract.client.platform.model.domain.api.AsyncApi api
protected final String channelName
protected final String serverName
protected final boolean disableValidation
protected final SourceCallbackRegistry registry
protected final amf.apicontract.client.platform.AMFElementClient amfElementClient
protected final AsyncConfig asyncConfig
protected org.mule.runtime.api.component.location.ComponentLocation componentLocation
protected String defaultEncoding
public MessageListenerHandler(amf.apicontract.client.platform.model.domain.api.AsyncApi api,
SourceCallbackRegistry registry,
AsyncConfig config,
amf.apicontract.client.platform.AMFElementClient amfElementClient,
boolean disableValidation,
String serverName,
String channelName,
List<Binding> asyncBindings,
String defaultEncoding)
public String getServerName()
public String getChannelName()
public void setComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation)
protected abstract String getRuntimeChannelName(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result)
public abstract String getSourceListenerName()
public abstract void configureSourceListener(org.mule.runtime.extension.api.client.source.SourceParameterizer sourceParameterizer)
sourceParameterizer - protected abstract AsyncMessageAttributes buildResultAttributes(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result, String specChannel)
result - specChannel - protected abstract InputStream buildResultOutput(org.mule.runtime.extension.api.runtime.operation.Result<T,A> result)
result - Copyright © 2024 MuleSoft, Inc.. All rights reserved.