public class WebRxStreamableServerTransportProvider extends Object implements McpServerTransportProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
WebRxStreamableServerTransportProvider.Builder
Builder for creating instances of
WebRxSseServerTransportProvider. |
static class |
WebRxStreamableServerTransportProvider.StreamableHttpServerTransport |
| Constructor and Description |
|---|
WebRxStreamableServerTransportProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
static WebRxStreamableServerTransportProvider.Builder |
builder() |
reactor.core.publisher.Mono<Void> |
closeGracefully()
Gracefully closes all the transports with connected clients and releases any
associated resources asynchronously.
|
void |
doDelete(org.noear.solon.core.handle.Context ctx) |
void |
doPost(org.noear.solon.core.handle.Context ctx) |
reactor.core.publisher.Mono<Void> |
notifyClients(String method,
Map<String,Object> params)
Sends a notification to all connected clients.
|
void |
sendHeartbeat() |
void |
setSessionFactory(McpServerSession.Factory sessionFactory)
Sets the session factory that will be used to create sessions for new clients.
|
void |
toHttpHandler(org.noear.solon.SolonApp app) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic WebRxStreamableServerTransportProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String endpoint)
public void sendHeartbeat()
public void toHttpHandler(org.noear.solon.SolonApp app)
public void setSessionFactory(McpServerSession.Factory sessionFactory)
McpServerTransportProvidersetSessionFactory in interface McpServerTransportProvidersessionFactory - the session factory to be used for initiating client sessionspublic reactor.core.publisher.Mono<Void> notifyClients(String method, Map<String,Object> params)
McpServerTransportProvidernotifyClients in interface McpServerTransportProvidermethod - the name of the notification method to be called on the clientsparams - a map of parameters to be sent with the notificationMcpSession.sendNotification(String, Map)public reactor.core.publisher.Mono<Void> closeGracefully()
McpServerTransportProvidercloseGracefully in interface McpServerTransportProviderMono that completes when the connections have been closed.public void doPost(org.noear.solon.core.handle.Context ctx)
throws Throwable
Throwablepublic void doDelete(org.noear.solon.core.handle.Context ctx)
throws IOException
IOExceptionpublic static WebRxStreamableServerTransportProvider.Builder builder()
Copyright © 2025. All rights reserved.