public class WebRxStreamableServerTransportProvider extends java.lang.Object implements McpStreamableServerTransportProvider, IMcpHttpServerTransport
限定符和类型 | 类和说明 |
---|---|
static class |
WebRxStreamableServerTransportProvider.Builder
Builder for creating instances of
WebRxStreamableServerTransportProvider . |
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
Default base URL for the message endpoint.
|
static java.lang.String |
ENDPOINT_EVENT_TYPE
Event type for sending the message endpoint URI to clients.
|
static java.lang.String |
MESSAGE_EVENT_TYPE
Event type for JSON-RPC messages sent through the SSE connection.
|
限定符和类型 | 方法和说明 |
---|---|
static WebRxStreamableServerTransportProvider.Builder |
builder() |
reactor.core.publisher.Mono<java.lang.Void> |
closeGracefully()
Initiates a graceful shutdown of the transport.
|
java.lang.String |
getMcpEndpoint() |
reactor.core.publisher.Mono<java.lang.Void> |
notifyClients(java.lang.String method,
java.lang.Object params)
Broadcasts a notification to all connected clients through their SSE connections.
|
java.util.List<java.lang.String> |
protocolVersions()
Returns the protocol version supported by this transport provider.
|
void |
setSessionFactory(McpStreamableServerSession.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, wait
close
public static final java.lang.String MESSAGE_EVENT_TYPE
public static final java.lang.String ENDPOINT_EVENT_TYPE
public static final java.lang.String DEFAULT_BASE_URL
public void toHttpHandler(org.noear.solon.SolonApp app)
toHttpHandler
在接口中 IMcpHttpServerTransport
public java.lang.String getMcpEndpoint()
getMcpEndpoint
在接口中 IMcpHttpServerTransport
public java.util.List<java.lang.String> protocolVersions()
McpServerTransportProviderBase
protocolVersions
在接口中 McpServerTransportProviderBase
public void setSessionFactory(McpStreamableServerSession.Factory sessionFactory)
McpStreamableServerTransportProvider
setSessionFactory
在接口中 McpStreamableServerTransportProvider
sessionFactory
- the session factory to be used for initiating client sessionspublic reactor.core.publisher.Mono<java.lang.Void> notifyClients(java.lang.String method, java.lang.Object params)
notifyClients
在接口中 McpServerTransportProviderBase
notifyClients
在接口中 McpStreamableServerTransportProvider
method
- The method name for the notificationparams
- The parameters for the notificationMcpSession#sendNotification(String, Map)
public reactor.core.publisher.Mono<java.lang.Void> closeGracefully()
closeGracefully
在接口中 McpServerTransportProviderBase
closeGracefully
在接口中 McpStreamableServerTransportProvider
public static WebRxStreamableServerTransportProvider.Builder builder()