@@ -119,6 +119,19 @@ public class HttpServletSseServerTransportProvider extends HttpServlet implement
119119 */
120120 private KeepAliveScheduler keepAliveScheduler ;
121121
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+
122135 /**
123136 * Creates a new HttpServletSseServerTransportProvider instance with a custom SSE
124137 * endpoint.
@@ -218,17 +231,6 @@ public List<String> protocolVersions() {
218231 return List .of (ProtocolVersions .MCP_2024_11_05 );
219232 }
220233
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-
232234 /**
233235 * Sets the session factory for creating new sessions.
234236 * @param sessionFactory The session factory to use
0 commit comments