@@ -119,6 +119,19 @@ 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
+ public HttpServletSseServerTransportProvider (ObjectMapper objectMapper , String messageEndpoint ) {
132
+ this (objectMapper , messageEndpoint , DEFAULT_SSE_ENDPOINT );
133
+ }
134
+
122
135
/**
123
136
* Creates a new HttpServletSseServerTransportProvider instance with a custom SSE
124
137
* endpoint.
@@ -218,17 +231,6 @@ public List<String> protocolVersions() {
218
231
return List .of (ProtocolVersions .MCP_2024_11_05 );
219
232
}
220
233
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
234
/**
233
235
* Sets the session factory for creating new sessions.
234
236
* @param sessionFactory The session factory to use
0 commit comments