public static class WebRxStatelessServerTransport.Builder extends Object
WebRxStatelessServerTransport.
This builder provides a fluent API for configuring and creating instances of WebMvcStatelessServerTransport with custom settings.
| Modifier and Type | Method and Description |
|---|---|
WebRxStatelessServerTransport |
build()
Builds a new instance of
WebRxStatelessServerTransport with the
configured settings. |
WebRxStatelessServerTransport.Builder |
contextExtractor(McpTransportContextExtractor<org.noear.solon.core.handle.Context> contextExtractor)
Sets the context extractor that allows providing the MCP feature
implementations to inspect HTTP transport level metadata that was present at
HTTP request processing time.
|
WebRxStatelessServerTransport.Builder |
messageEndpoint(String messageEndpoint)
Sets the endpoint URI where clients should send their JSON-RPC messages.
|
WebRxStatelessServerTransport.Builder |
objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Sets the ObjectMapper to use for JSON serialization/deserialization of MCP
messages.
|
public WebRxStatelessServerTransport.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper - The ObjectMapper instance. Must not be null.IllegalArgumentException - if objectMapper is nullpublic WebRxStatelessServerTransport.Builder messageEndpoint(String messageEndpoint)
messageEndpoint - The message endpoint URI. Must not be null.IllegalArgumentException - if messageEndpoint is nullpublic WebRxStatelessServerTransport.Builder contextExtractor(McpTransportContextExtractor<org.noear.solon.core.handle.Context> contextExtractor)
contextExtractor - The contextExtractor to fill in a
McpTransportContext.IllegalArgumentException - if contextExtractor is nullpublic WebRxStatelessServerTransport build()
WebRxStatelessServerTransport with the
configured settings.IllegalStateException - if required parameters are not setCopyright © 2025. All rights reserved.