Class ServerAgent
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.ServerAgent
-
Constructor Summary
ConstructorsConstructorDescriptionServerAgent(org.mule.runtime.http.api.server.HttpServer httpServer, String path, JsonRpcSerializer serializer, A2AProtocolSerializer messageSerializer, org.mule.runtime.api.lock.LockFactory lockFactory, org.mule.runtime.api.store.ObjectStoreManager objectStoreManager, org.mule.runtime.http.api.client.HttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTracingData(RpcRequestContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceManager) getCard()getPath()voidinitServer(ServerConfig config, org.mule.runtime.api.component.location.ComponentLocation listenerComponentLocation, Consumer<RpcRequestContext> onRequest) voidvoidsetPushNotificationHandler(Function<RpcRequestContext, CompletableFuture<EffectivePushNotificationConfig>> handler) voidstop()
-
Constructor Details
-
ServerAgent
public ServerAgent(org.mule.runtime.http.api.server.HttpServer httpServer, String path, JsonRpcSerializer serializer, A2AProtocolSerializer messageSerializer, org.mule.runtime.api.lock.LockFactory lockFactory, org.mule.runtime.api.store.ObjectStoreManager objectStoreManager, org.mule.runtime.http.api.client.HttpClient client)
-
-
Method Details
-
initServer
public void initServer(ServerConfig config, org.mule.runtime.api.component.location.ComponentLocation listenerComponentLocation, Consumer<RpcRequestContext> onRequest) -
setPushNotificationHandler
public void setPushNotificationHandler(Function<RpcRequestContext, CompletableFuture<EffectivePushNotificationConfig>> handler) -
removePushNotificationHandler
public void removePushNotificationHandler() -
addTracingData
public void addTracingData(RpcRequestContext context, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceManager) -
stop
public void stop() -
getCard
-
getPath
-
getSerializer
-
getA2aSerializer
-