Class TaskListener
java.lang.Object
org.mule.sdk.api.runtime.source.Source<T,A>
com.mulesoft.connectors.a2a.internal.server.listener.BaseServerListener<String,RequestAttributes>
com.mulesoft.connectors.a2a.internal.server.listener.task.TaskListener
- All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Initialisable
@DisplayName("Task Listener")
@EmitsResponse
@MetadataScope(outputResolver=MessageSendParamsOutputResolver.class)
@MediaType("application/json")
public class TaskListener
extends BaseServerListener<String,RequestAttributes>
-
Field Summary
Fields inherited from class com.mulesoft.connectors.a2a.internal.server.listener.BaseServerListener
componentLocation, config, connectionProvider, REQUEST_CONTEXT_VAR, serverAgentFields inherited from interface org.mule.runtime.api.lifecycle.Initialisable
PHASE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(TaskErrorResponseParameterGroup errorResponse, org.mule.runtime.api.message.Error error, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager) voidonStart(org.mule.sdk.api.runtime.source.SourceCallback<String, RequestAttributes> sourceCallback) voidonStop()voidonSuccess(TaskResponseParameterGroup response, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager) voidonTerminate(org.mule.runtime.extension.api.runtime.source.SourceResult sourceResult) Methods inherited from class com.mulesoft.connectors.a2a.internal.server.listener.BaseServerListener
doInitialise, getDslTag, initialise, recoverRequestContext, storeInContext
-
Constructor Details
-
TaskListener
public TaskListener()
-
-
Method Details
-
onStart
public void onStart(org.mule.sdk.api.runtime.source.SourceCallback<String, RequestAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException- Specified by:
onStartin classorg.mule.sdk.api.runtime.source.Source<String,RequestAttributes> - Throws:
org.mule.runtime.api.exception.MuleException
-
onSuccess
@OnSuccess public void onSuccess(@ParameterGroup(name="Response",showInDsl=true) TaskResponseParameterGroup response, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager) -
onError
@OnError public void onError(@ParameterGroup(name="Error Response",showInDsl=true) @Expression(NOT_SUPPORTED) @ParameterDsl(allowReferences=false) TaskErrorResponseParameterGroup errorResponse, org.mule.runtime.api.message.Error error, org.mule.sdk.api.runtime.source.SourceCallbackContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager) -
onTerminate
@OnTerminate public void onTerminate(org.mule.runtime.extension.api.runtime.source.SourceResult sourceResult) -
onStop
public void onStop()- Specified by:
onStopin classorg.mule.sdk.api.runtime.source.Source<String,RequestAttributes>
-