public class DefaultMcpStreamableServerSessionFactory extends Object implements McpStreamableServerSession.Factory
McpStreamableServerSession.Factory.| Constructor and Description |
|---|
DefaultMcpStreamableServerSessionFactory(Duration requestTimeout,
McpStreamableServerSession.InitRequestHandler initRequestHandler,
Map<String,McpRequestHandler<?>> requestHandlers,
Map<String,McpNotificationHandler> notificationHandlers)
Constructs an instance
|
| Modifier and Type | Method and Description |
|---|---|
McpStreamableServerSession.McpStreamableServerSessionInit |
startSession(McpSchema.InitializeRequest initializeRequest)
Given an initialize request, create a composite for the session initialization
|
public DefaultMcpStreamableServerSessionFactory(Duration requestTimeout, McpStreamableServerSession.InitRequestHandler initRequestHandler, Map<String,McpRequestHandler<?>> requestHandlers, Map<String,McpNotificationHandler> notificationHandlers)
requestTimeout - timeout for requestsinitRequestHandler - initialization request handlerrequestHandlers - map of MCP request handlers keyed by method namenotificationHandlers - map of MCP notification handlers keyed by method namepublic McpStreamableServerSession.McpStreamableServerSessionInit startSession(McpSchema.InitializeRequest initializeRequest)
McpStreamableServerSession.FactorystartSession in interface McpStreamableServerSession.FactoryinitializeRequest - the initialization request from the clientCopyright © 2025. All rights reserved.