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