summaryrefslogtreecommitdiff
path: root/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java
diff options
context:
space:
mode:
Diffstat (limited to 'spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java')
-rw-r--r--spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java
index bc358a92..8851a394 100644
--- a/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java
+++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 the original author or authors.
+ * Copyright 2002-2019 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.
@@ -17,8 +17,8 @@
package org.springframework.messaging.simp.stomp;
/**
- * Represents a STOMP session with operations to send messages, create
- * subscriptions and receive messages on those subscriptions.
+ * Represents a STOMP session with operations to send messages,
+ * create subscriptions and receive messages on those subscriptions.
*
* @author Rossen Stoyanchev
* @since 4.2
@@ -37,10 +37,10 @@ public interface StompSession {
/**
* When enabled, a receipt header is automatically added to future
- * {@code send} and {@code subscribe} operations on this session, which causes
- * the server to return a RECEIPT. An application can then use the
- * {@link StompSession.Receiptable
- * Receiptable} returned from the operation to track the receipt.
+ * {@code send} and {@code subscribe} operations on this session, which
+ * causes the server to return a RECEIPT. An application can then use
+ * the {@link StompSession.Receiptable Receiptable} returned from the
+ * operation to track the receipt.
* <p>A receipt header can also be added manually through the overloaded
* methods that accept {@code StompHeaders}.
*/
@@ -57,11 +57,11 @@ public interface StompSession {
Receiptable send(String destination, Object payload);
/**
- * An overloaded version of {@link #send(String, Object)} that accepts
- * full {@link StompHeaders} instead of a destination. The headers must
+ * An overloaded version of {@link #send(String, Object)} with full
+ * {@link StompHeaders} instead of just a destination. The headers must
* contain a destination and may also have other headers such as
- * "content-type" or custom headers for the broker to propagate to subscribers,
- * or broker-specific, non-standard headers..
+ * "content-type" or custom headers for the broker to propagate to
+ * subscribers, or broker-specific, non-standard headers.
* @param headers the message headers
* @param payload the message payload
* @return a Receiptable for tracking receipts
@@ -79,7 +79,7 @@ public interface StompSession {
/**
* An overloaded version of {@link #subscribe(String, StompFrameHandler)}
- * that accepts full {@link StompHeaders} rather instead of a destination.
+ * with full {@link StompHeaders} instead of just a destination.
* @param headers the headers for the subscribe message frame
* @param handler the handler for received messages
* @return a handle to use to unsubscribe and/or track receipts