diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java index b32c3836ed..96b055a457 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,9 +33,9 @@ import org.springframework.util.CollectionUtils; * A base class for working with message headers in simple messaging protocols that * support basic messaging patterns. Provides uniform access to specific values common * across protocols such as a destination, message type (e.g. publish, subscribe, etc), - * session id, and others. + * session ID, and others. * - *

Use one of the static factory method in this class, then call getters and setters, + *

Use one of the static factory methods in this class, then call getters and setters, * and at the end if necessary call {@link #toMap()} to obtain the updated headers. * * @author Rossen Stoyanchev @@ -91,7 +91,8 @@ public class SimpMessageHeaderAccessor extends NativeMessageHeaderAccessor { /** * A constructor for creating new message headers. - * This constructor is protected. See factory methods in this and subclasses. + *

This constructor is protected. See factory methods in this class + * and subclasses. */ protected SimpMessageHeaderAccessor(SimpMessageType messageType, @Nullable Map> externalSourceHeaders) { @@ -103,8 +104,9 @@ public class SimpMessageHeaderAccessor extends NativeMessageHeaderAccessor { } /** - * A constructor for accessing and modifying existing message headers. This - * constructor is protected. See factory methods in this and subclasses. + * A constructor for accessing and modifying existing message headers. + *

This constructor is protected. See factory methods in this class + * and subclasses. */ protected SimpMessageHeaderAccessor(Message message) { super(message); diff --git a/spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java b/spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java index 1089119c60..aafc1dcca4 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,15 +30,15 @@ import org.springframework.util.MultiValueMap; import org.springframework.util.ObjectUtils; /** - * {@link MessageHeaderAccessor} sub-class that supports storage and access of + * {@link MessageHeaderAccessor} subclass that supports storage and access of * headers from an external source such as a message broker. Headers from the * external source are kept separate from other headers, in a sub-map under the * key {@link #NATIVE_HEADERS}. This allows separating processing headers from * headers that need to be sent to or received from the external source. * *

This class is likely to be used indirectly through a protocol-specific - * subclass that also provide factory methods to translate - * message headers to and from an external messaging source. + * subclass that also provides factory methods to translate message headers + * to and from an external messaging source. * * @author Rossen Stoyanchev * @since 4.0