Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2012-11-06 22:46:49 +0000
committerJoakim Erdfelt2012-11-06 22:46:49 +0000
commit5eb5eb818ffb79041de82fe31cc9ca6877895eab (patch)
tree8d9dc8fe8b77568a92953844390f9602ee5daf91 /jetty-websocket/websocket-api/src
parent000cfe698616b8becb8e7cb1e04e8cab20ce1d00 (diff)
downloadorg.eclipse.jetty.project-5eb5eb818ffb79041de82fe31cc9ca6877895eab.tar.gz
org.eclipse.jetty.project-5eb5eb818ffb79041de82fe31cc9ca6877895eab.tar.xz
org.eclipse.jetty.project-5eb5eb818ffb79041de82fe31cc9ca6877895eab.zip
Brining over important getters for jetty Extension
Diffstat (limited to 'jetty-websocket/websocket-api/src')
-rw-r--r--jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Extension.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Extension.java b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Extension.java
index 02f20f22f7..512cfafe86 100644
--- a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Extension.java
+++ b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Extension.java
@@ -61,4 +61,44 @@ public interface Extension extends javax.net.websocket.extensions.Extension
*/
@Override
public String getName();
+
+ /**
+ * Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing.
+ * <p>
+ * This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV1.
+ *
+ * @return true if extension uses RSV1 for its own purposes.
+ */
+ public abstract boolean isRsv1User();
+
+ /**
+ * Used to indicate that the extension makes use of the RSV2 bit of the base websocket framing.
+ * <p>
+ * This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV2.
+ *
+ * @return true if extension uses RSV2 for its own purposes.
+ */
+ public abstract boolean isRsv2User();
+
+ /**
+ * Used to indicate that the extension makes use of the RSV3 bit of the base websocket framing.
+ * <p>
+ * This is used to adjust validation during parsing, as well as a checkpoint against 2 or more extensions all simultaneously claiming ownership of RSV3.
+ *
+ * @return true if extension uses RSV3 for its own purposes.
+ */
+ public abstract boolean isRsv3User();
+
+ /**
+ * Used to indicate that the extension works as a decoder of TEXT Data Frames.
+ * <p>
+ * This is used to adjust validation during parsing/generating, as per spec TEXT Data Frames can only contain UTF8 encoded String data.
+ * <p>
+ * Example: a compression extension will process a compressed set of text data, the parser/generator should no longer be concerned about the validity of the
+ * TEXT Data Frames as this is now the responsibility of the extension.
+ *
+ * @return true if extension will process TEXT Data Frames, false if extension makes no modifications of TEXT Data Frames. If false, the parser/generator is
+ * now free to validate the conformance to spec of TEXT Data Frames.
+ */
+ public abstract boolean isTextDataDecoder();
} \ No newline at end of file

Back to the top