Class WebFluxSseClientTransport.Builder
java.lang.Object
io.modelcontextprotocol.client.transport.WebFluxSseClientTransport.Builder
- Enclosing class:
- WebFluxSseClientTransport
Builder for
WebFluxSseClientTransport.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) Creates a new builder with the specified WebClient.Builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newWebFluxSseClientTransportinstance.objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Sets the object mapper for JSON serialization/deserialization.sseEndpoint(String sseEndpoint) Sets the SSE endpoint path.
-
Constructor Details
-
Builder
public Builder(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) Creates a new builder with the specified WebClient.Builder.- Parameters:
webClientBuilder- the WebClient.Builder to use
-
-
Method Details
-
sseEndpoint
Sets the SSE endpoint path.- Parameters:
sseEndpoint- the SSE endpoint path- Returns:
- this builder
-
objectMapper
public WebFluxSseClientTransport.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Sets the object mapper for JSON serialization/deserialization.- Parameters:
objectMapper- the object mapper- Returns:
- this builder
-
build
Builds a newWebFluxSseClientTransportinstance.- Returns:
- a new transport instance
-