Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2013-12-09 23:18:39 +0000
committerJoakim Erdfelt2013-12-09 23:20:14 +0000
commit48fe92d93930a3ae9e13bcf375b9cc367182f5d3 (patch)
tree5e6a632d2f64fe831c8a046c3bd58321cd495deb /jetty-websocket/websocket-api/src
parentdb777310b59fc2c0ecbdfbe852c2a8c18fa7442a (diff)
downloadorg.eclipse.jetty.project-48fe92d93930a3ae9e13bcf375b9cc367182f5d3.tar.gz
org.eclipse.jetty.project-48fe92d93930a3ae9e13bcf375b9cc367182f5d3.tar.xz
org.eclipse.jetty.project-48fe92d93930a3ae9e13bcf375b9cc367182f5d3.zip
423185 - Update permessage-deflate for finalized spec
+ Adding support for new permessage-deflate parameters + Tested against pywebsocket (rev 790) + Tested against Chrome Canary 32
Diffstat (limited to 'jetty-websocket/websocket-api/src')
-rw-r--r--jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/ExtensionConfig.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/ExtensionConfig.java b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/ExtensionConfig.java
index 04c01217de..329dbea81c 100644
--- a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/ExtensionConfig.java
+++ b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/ExtensionConfig.java
@@ -63,6 +63,16 @@ public class ExtensionConfig
this.parameters = new HashMap<>();
}
+ /**
+ * Copy constructor
+ */
+ public ExtensionConfig(ExtensionConfig copy)
+ {
+ this.name = copy.name;
+ this.parameters = new HashMap<>();
+ this.parameters.putAll(copy.parameters);
+ }
+
public String getName()
{
return name;
@@ -142,6 +152,11 @@ public class ExtensionConfig
{
parameters.put(key,value);
}
+
+ public void setParameter(String key)
+ {
+ parameters.put(key,null);
+ }
@Override
public String toString()

Back to the top