@@ -118,6 +118,20 @@ public class HttpServletSseServerTransportProvider extends HttpServlet implement
118118 */
119119 private KeepAliveScheduler keepAliveScheduler ;
120120
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+
121135 /**
122136 * Creates a new HttpServletSseServerTransportProvider instance with a custom SSE
123137 * endpoint.
@@ -217,17 +231,6 @@ public List<String> protocolVersions() {
217231 return List .of (ProtocolVersions .MCP_2024_11_05 );
218232 }
219233
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-
231234 /**
232235 * Sets the session factory for creating new sessions.
233236 * @param sessionFactory The session factory to use
0 commit comments