You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5cc8e66
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/main/java/org/java_websocket/extensions/IExtension.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@
30
30
31
31
/**
32
32
* Interface which specifies all required methods to develop a websocket extension.
33
+
* @since 1.3.5
33
34
*/
34
35
publicinterfaceIExtension {
35
36
@@ -40,6 +41,7 @@ public interface IExtension {
40
41
*
41
42
* @param inputFrame the frame, which has do be decoded to be used in the application
42
43
* @throws InvalidDataException Throw InvalidDataException if the received frame is not correctly implemented by the other endpoint or there are other protocol errors/decoding errors
* @throws InvalidDataException Throw InvalidDataException if the received frame is not correctly implementing the specification for the specific extension
* If the extension returns an empty string (""), the offer will not be included in the handshake.
82
88
*
83
89
* @return the specific Sec-WebSocket-Extensions header for this extension
90
+
* @since 1.3.5
84
91
*/
85
92
StringgetProvidedExtensionAsClient();
86
93
@@ -89,25 +96,29 @@ public interface IExtension {
89
96
* If the extension returns an empty string (""), the offer will not be included in the handshake.
90
97
*
91
98
* @return the specific Sec-WebSocket-Extensions header for this extension
99
+
* @since 1.3.5
92
100
*/
93
101
StringgetProvidedExtensionAsServer();
94
102
95
103
/**
96
104
* Extensions must only be by one websocket at all. To prevent extensions to be used more than once the Websocket implementation should call this method in order to create a new usable version of a given extension instance.<br>
97
105
* The copy can be safely used in conjunction with a new websocket connection.
98
106
* @return a copy of the extension
107
+
* @since 1.3.5
99
108
*/
100
109
IExtensioncopyInstance();
101
110
102
111
/**
103
112
* Cleaning up internal stats when the draft gets reset.
113
+
* @since 1.3.5
104
114
*/
105
115
voidreset();
106
116
107
117
/**
108
118
* Return a string which should contain the class name as well as additional information about the current configurations for this extension (DEBUG purposes)
109
119
*
110
120
* @return a string containing the class name as well as additional information
* If the extension returns an empty string (""), the offer will not be included in the handshake.
44
47
*
45
48
* @return the specific Sec-WebSocket-Protocol header for this protocol
49
+
* @since 1.3.7
46
50
*/
47
51
StringgetProvidedProtocol();
48
52
49
53
/**
50
54
* To prevent protocols to be used more than once the Websocket implementation should call this method in order to create a new usable version of a given protocol instance.
51
55
* @return a copy of the protocol
56
+
* @since 1.3.7
52
57
*/
53
58
IProtocolcopyInstance();
54
59
55
60
/**
56
61
* Return a string which should contain the protocol name as well as additional information about the current configurations for this protocol (DEBUG purposes)
57
62
*
58
63
* @return a string containing the protocol name as well as additional information
0 commit comments