Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java')
-rw-r--r--jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java36
1 files changed, 28 insertions, 8 deletions
diff --git a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java
index 0d4889d713..0ae231cab4 100644
--- a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java
+++ b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/api/HeadersInfo.java
@@ -18,12 +18,14 @@
package org.eclipse.jetty.spdy.api;
+import java.util.concurrent.TimeUnit;
+
import org.eclipse.jetty.util.Fields;
/**
* <p>A container for HEADERS frame metadata and headers.</p>
*/
-public class HeadersInfo
+public class HeadersInfo extends Info
{
/**
* <p>Flag that indicates that this {@link HeadersInfo} is the last frame in the stream.</p>
@@ -45,11 +47,11 @@ public class HeadersInfo
private final Fields headers;
/**
- * <p>Creates a new {@link HeadersInfo} instance with the given headers,
- * the given close flag and no reset compression flag</p>
+ * <p>Creates a new {@link HeadersInfo} instance with the given headers, the given close flag and no reset
+ * compression flag</p>
*
* @param headers the {@link Fields}
- * @param close the value of the close flag
+ * @param close the value of the close flag
*/
public HeadersInfo(Fields headers, boolean close)
{
@@ -57,11 +59,11 @@ public class HeadersInfo
}
/**
- * <p>Creates a new {@link HeadersInfo} instance with the given headers,
- * the given close flag and the given reset compression flag</p>
+ * <p>Creates a new {@link HeadersInfo} instance with the given headers, the given close flag and the given reset
+ * compression flag</p>
*
- * @param headers the {@link Fields}
- * @param close the value of the close flag
+ * @param headers the {@link Fields}
+ * @param close the value of the close flag
* @param resetCompression the value of the reset compression flag
*/
public HeadersInfo(Fields headers, boolean close, boolean resetCompression)
@@ -72,6 +74,24 @@ public class HeadersInfo
}
/**
+ * <p>Creates a new {@link HeadersInfo} instance with the given headers, the given close flag and the given reset
+ * compression flag</p>
+ *
+ * @param timeout the operation's timeout
+ * @param unit the timeout's unit
+ * @param headers the {@link Fields}
+ * @param close the value of the close flag
+ * @param resetCompression the value of the reset compression flag
+ */
+ public HeadersInfo(long timeout, TimeUnit unit, boolean close, boolean resetCompression, Fields headers)
+ {
+ super(timeout, unit);
+ this.close = close;
+ this.resetCompression = resetCompression;
+ this.headers = headers;
+ }
+
+ /**
* @return the value of the close flag
*/
public boolean isClose()

Back to the top