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()
Gracefully closes all the transports with connected clients and releases any
associated resources asynchronously.
|
java.lang.String |
getMcpEndpoint() |
reactor.core.publisher.Mono<java.lang.Void> |
notifyClients(java.lang.String method,
java.lang.Object params)
Sends a notification to all connected clients.
|
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, waitclosepublic 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 在接口中 IMcpHttpServerTransportpublic java.lang.String getMcpEndpoint()
getMcpEndpoint 在接口中 IMcpHttpServerTransportpublic java.util.List<java.lang.String> protocolVersions()
McpServerTransportProviderBaseprotocolVersions 在接口中 McpServerTransportProviderBasepublic void setSessionFactory(McpStreamableServerSession.Factory sessionFactory)
McpStreamableServerTransportProvidersetSessionFactory 在接口中 McpStreamableServerTransportProvidersessionFactory - 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)
McpStreamableServerTransportProvidernotifyClients 在接口中 McpServerTransportProviderBasenotifyClients 在接口中 McpStreamableServerTransportProvidermethod - the name of the notification method to be called on the clientsparams - parameters to be sent with the notificationMcpSession#sendNotification(String, Map)public reactor.core.publisher.Mono<java.lang.Void> closeGracefully()
McpStreamableServerTransportProvidercloseGracefully 在接口中 McpServerTransportProviderBasecloseGracefully 在接口中 McpStreamableServerTransportProviderMono that completes when the connections have been closed.public static WebRxStreamableServerTransportProvider.Builder builder()