Skip to content

Commit a946fe2

Browse files
acktsapsdeleuze
authored andcommitted
Fix broken link for Server-Sent Events
Signed-off-by: Taeik Lim <[email protected]> Closes gh-34705
1 parent 671d972 commit a946fe2

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

framework-docs/modules/ROOT/pages/web/webmvc-functional.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ ServerResponse.async(asyncResponse);
276276
----
277277
======
278278

279-
https://www.w3.org/TR/eventsource/[Server-Sent Events] can be provided via the
279+
https://html.spec.whatwg.org/multipage/server-sent-events.html[Server-Sent Events] can be provided via the
280280
static `sse` method on `ServerResponse`. The builder provided by that method
281281
allows you to send Strings, or other objects as JSON. For example:
282282

framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-async.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ invokes the configured exception resolvers and completes the request.
281281
=== SSE
282282

283283
`SseEmitter` (a subclass of `ResponseBodyEmitter`) provides support for
284-
https://www.w3.org/TR/eventsource/[Server-Sent Events], where events sent from the server
284+
https://html.spec.whatwg.org/multipage/server-sent-events.html[Server-Sent Events], where events sent from the server
285285
are formatted according to the W3C SSE specification. To produce an SSE
286286
stream from a controller, return `SseEmitter`, as the following example shows:
287287

spring-web/src/main/java/org/springframework/http/MediaType.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -395,7 +395,7 @@ public class MediaType extends MimeType implements Serializable {
395395
/**
396396
* Public constant media type for {@code text/event-stream}.
397397
* @since 4.3.6
398-
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events W3C recommendation</a>
398+
* @see <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>
399399
*/
400400
public static final MediaType TEXT_EVENT_STREAM;
401401

spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@
3232
* @since 5.0
3333
* @param <T> the type of data that this event contains
3434
* @see ServerSentEventHttpMessageWriter
35-
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events W3C recommendation</a>
35+
* @see <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>
3636
*/
3737
public final class ServerSentEvent<T> {
3838

spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyInserters.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -262,7 +262,7 @@ public static <T extends Resource> BodyInserter<T, ReactiveHttpOutputMessage> fr
262262
* @param eventsPublisher the {@code ServerSentEvent} publisher to write to the response body
263263
* @param <T> the type of the data elements in the {@link ServerSentEvent}
264264
* @return the inserter to write a {@code ServerSentEvent} publisher
265-
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events W3C recommendation</a>
265+
* @see <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>
266266
*/
267267
// Parameterized for server-side use
268268
public static <T, S extends Publisher<ServerSentEvent<T>>> BodyInserter<S, ServerHttpResponse> fromServerSentEvents(

spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -293,7 +293,7 @@ static ServerResponse async(Object asyncResponse, Duration timeout) {
293293
* @param consumer consumer that will be provided with an event builder
294294
* @return the server-side event response
295295
* @since 5.3.2
296-
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events</a>
296+
* @see <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>
297297
*/
298298
static ServerResponse sse(Consumer<SseBuilder> consumer) {
299299
return SseServerResponse.create(consumer, null);
@@ -323,7 +323,7 @@ static ServerResponse sse(Consumer<SseBuilder> consumer) {
323323
* @param timeout maximum time period to wait before timing out
324324
* @return the server-side event response
325325
* @since 5.3.2
326-
* @see <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events</a>
326+
* @see <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>
327327
*/
328328
static ServerResponse sse(Consumer<SseBuilder> consumer, Duration timeout) {
329329
return SseServerResponse.create(consumer, timeout);

spring-webmvc/src/main/java/org/springframework/web/servlet/function/SseServerResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
/**
4848
* Implementation of {@link ServerResponse} for sending
49-
* <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events</a>.
49+
* <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>.
5050
*
5151
* @author Arjen Poutsma
5252
* @author Sebastien Deleuze

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/SseEmitter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434

3535
/**
3636
* A specialization of {@link ResponseBodyEmitter} for sending
37-
* <a href="https://www.w3.org/TR/eventsource/">Server-Sent Events</a>.
37+
* <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>.
3838
*
3939
* @author Rossen Stoyanchev
4040
* @author Juergen Hoeller

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/EventSourceTransportHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* A TransportHandler for sending messages via Server-Sent Events:
34-
* <a href="https://dev.w3.org/html5/eventsource/">https://dev.w3.org/html5/eventsource/</a>.
34+
* <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">Server-Sent Events</a>.
3535
*
3636
* @author Rossen Stoyanchev
3737
* @since 4.0

0 commit comments

Comments
 (0)