Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2015-11-25 11:51:03 +0000
committerSimone Bordet2015-11-25 11:58:02 +0000
commitf596bf15661df0fe6051fbc3331d7f4e04c7e669 (patch)
tree5b1e337cb1f2e1a88ba5bc62fd4018c1e461b4db /jetty-http2
parent204591ce82c77b3e473853c529eb3dd390955709 (diff)
downloadorg.eclipse.jetty.project-f596bf15661df0fe6051fbc3331d7f4e04c7e669.tar.gz
org.eclipse.jetty.project-f596bf15661df0fe6051fbc3331d7f4e04c7e669.tar.xz
org.eclipse.jetty.project-f596bf15661df0fe6051fbc3331d7f4e04c7e669.zip
Improved javadocs for onPreface().
Diffstat (limited to 'jetty-http2')
-rw-r--r--jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/api/Session.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/api/Session.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/api/Session.java
index 883ed322f6..16bdc08f3b 100644
--- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/api/Session.java
+++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/api/Session.java
@@ -134,11 +134,18 @@ public interface Session
public interface Listener
{
/**
- * <p>Callback method invoked when the preface has been received.</p>
+ * <p>Callback method invoked:</p>
+ * <ul>
+ * <li>for clients, just before the preface is sent, to gather the
+ * SETTINGS configuration options the client wants to send to the server;</li>
+ * <li>for servers, just after having received the preface, to gather
+ * the SETTINGS configuration options the server wants to send to the
+ * client.</li>
+ * </ul>
*
* @param session the session
* @return a (possibly empty or null) map containing SETTINGS configuration
- * options that are sent after the preface.
+ * options to send.
*/
public Map<Integer, Integer> onPreface(Session session);

Back to the top