@@ -119,6 +119,20 @@ public class HttpServletSseServerTransportProvider extends HttpServlet implement
119
119
*/
120
120
private KeepAliveScheduler keepAliveScheduler ;
121
121
122
+ /**
123
+ * Creates a new HttpServletSseServerTransportProvider instance with the default SSE
124
+ * endpoint.
125
+ * @param objectMapper The JSON object mapper to use for message
126
+ * serialization/deserialization
127
+ * @param messageEndpoint The endpoint path where clients will send their messages
128
+ * @deprecated Use the builder {@link #builder()} instead for better configuration
129
+ * options.
130
+ */
131
+ @ Deprecated
132
+ public HttpServletSseServerTransportProvider (ObjectMapper objectMapper , String messageEndpoint ) {
133
+ this (objectMapper , messageEndpoint , DEFAULT_SSE_ENDPOINT );
134
+ }
135
+
122
136
/**
123
137
* Creates a new HttpServletSseServerTransportProvider instance with a custom SSE
124
138
* endpoint.
@@ -218,17 +232,6 @@ public List<String> protocolVersions() {
218
232
return List .of (ProtocolVersions .MCP_2024_11_05 );
219
233
}
220
234
221
- /**
222
- * Creates a new HttpServletSseServerTransportProvider instance with the default SSE
223
- * endpoint.
224
- * @param objectMapper The JSON object mapper to use for message
225
- * serialization/deserialization
226
- * @param messageEndpoint The endpoint path where clients will send their messages
227
- */
228
- public HttpServletSseServerTransportProvider (ObjectMapper objectMapper , String messageEndpoint ) {
229
- this (objectMapper , messageEndpoint , DEFAULT_SSE_ENDPOINT );
230
- }
231
-
232
235
/**
233
236
* Sets the session factory for creating new sessions.
234
237
* @param sessionFactory The session factory to use
0 commit comments