Class AbstractHttpClientTransport
java.lang.Object
com.mulesoft.connectors.mcp.internal.client.connection.transport.AbstractHttpClientTransport
- All Implemented Interfaces:
io.modelcontextprotocol.spec.McpClientTransport,io.modelcontextprotocol.spec.McpTransport
- Direct Known Subclasses:
SseClientTransport,StreamableHttpClientTransport
public abstract class AbstractHttpClientTransport
extends Object
implements io.modelcontextprotocol.spec.McpClientTransport
Base class for
McpClientTransport implementations based on Http- Since:
- 0.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.mule.extension.http.api.request.authentication.HttpRequestAuthenticationprotected final org.mule.runtime.http.api.client.HttpClientprotected final MessagingManagerprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final AtomicBooleanprotected final org.mule.runtime.http.api.client.HttpRequestOptionsprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHttpClientTransport(org.mule.runtime.http.api.client.HttpClient httpClient, String serverUrl, int responseTimeout, org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication, MessagingManager messagingManager) -
Method Summary
Modifier and TypeMethodDescription<T> TunmarshalFrom(Object data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.modelcontextprotocol.spec.McpClientTransport
connectMethods inherited from interface io.modelcontextprotocol.spec.McpTransport
close, closeGracefully, sendMessage
-
Field Details
-
serverUrl
-
authentication
protected final org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication -
requestOptions
protected final org.mule.runtime.http.api.client.HttpRequestOptions requestOptions -
messagingManager
-
opened
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
httpClient
protected final org.mule.runtime.http.api.client.HttpClient httpClient
-
-
Constructor Details
-
AbstractHttpClientTransport
public AbstractHttpClientTransport(org.mule.runtime.http.api.client.HttpClient httpClient, String serverUrl, int responseTimeout, org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication, MessagingManager messagingManager)
-
-
Method Details
-
unmarshalFrom
- Specified by:
unmarshalFromin interfaceio.modelcontextprotocol.spec.McpTransport
-