Skip to content

Commit b6435fc

Browse files
committed
FixTypo
1 parent 499b26f commit b6435fc

24 files changed

+136
-136
lines changed

‎autobahn reports/clients/index.html‎

Lines changed: 79 additions & 79 deletions
Large diffs are not rendered by default.

‎autobahn reports/servers/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4112,7 +4112,7 @@ <h2>Case 7.1.5</h2>
41124112
<h2>Case 7.1.6</h2>
41134113
<aclass="up" href="#top">Up</a>
41144114
<pclass="case_text_block case_desc"><b>Case Description</b><br/><br/>Send 256K message followed by close then a ping</p>
4115-
<pclass="case_text_block case_expect"><b>Case Expectation</b><br/><br/>Case outcome depends on implementation defined close behavior. Message and close frame are sent back to back. If the close frame is processed before the text message write is complete (as can happen in asynchronous processing models) the close frame is processed first and the text message may not be received or may only be partially recieved.</p>
4115+
<pclass="case_text_block case_expect"><b>Case Expectation</b><br/><br/>Case outcome depends on implementation defined close behavior. Message and close frame are sent back to back. If the close frame is processed before the text message write is complete (as can happen in asynchronous processing models) the close frame is processed first and the text message may not be received or may only be partially received.</p>
41164116
<br/>
41174117
<aname="case_desc_7_3_1"></a>
41184118
<h2>Case 7.3.1</h2>

‎src/main/example/ChatClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void onClose( int code, String reason, boolean remote ){
146146

147147
@Override
148148
publicvoidonError( Exceptionex ){
149-
ta.append( "Exception occured ...\n" + ex + "\n" );
149+
ta.append( "Exception occurred ...\n" + ex + "\n" );
150150
ta.setCaretPosition( ta.getDocument().getLength() );
151151
ex.printStackTrace();
152152
connect.setEnabled( true );

‎src/main/java/org/java_websocket/SSLSocketChannel.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* <p>
6262
* Modified by marci4 to allow the usage as a ByteChannel
6363
* <p>
64-
* Permission for usage recieved at May 25, 2017 by Alex Karnezis
64+
* Permission for usage received at May 25, 2017 by Alex Karnezis
6565
*/
6666
publicclassSSLSocketChannelimplementsWrappedByteChannel, ByteChannel, ISSLChannel{
6767

@@ -214,7 +214,7 @@ public synchronized int write( ByteBuffer output ) throws IOException{
214214
myNetData = enlargePacketBuffer( myNetData );
215215
break;
216216
caseBUFFER_UNDERFLOW:
217-
thrownewSSLException( "Buffer underflow occured after a wrap. I don't think we should ever get here." );
217+
thrownewSSLException( "Buffer underflow occurred after a wrap. I don't think we should ever get here." );
218218
caseCLOSED:
219219
closeConnection();
220220
return0;
@@ -283,7 +283,7 @@ private boolean doHandshake() throws IOException{
283283
try{
284284
engine.closeInbound();
285285
} catch ( SSLExceptione ){
286-
//Ignore, cant do anything against this exception
286+
//Ignore, can't do anything against this exception
287287
}
288288
engine.closeOutbound();
289289
// After closeOutbound the engine will be set to WRAP state, in order to try to send a close message to the client.
@@ -347,7 +347,7 @@ private boolean doHandshake() throws IOException{
347347
myNetData = enlargePacketBuffer( myNetData );
348348
break;
349349
caseBUFFER_UNDERFLOW:
350-
thrownewSSLException( "Buffer underflow occured after a wrap. I don't think we should ever get here." );
350+
thrownewSSLException( "Buffer underflow occurred after a wrap. I don't think we should ever get here." );
351351
caseCLOSED:
352352
try{
353353
myNetData.flip();

‎src/main/java/org/java_websocket/SSLSocketChannel2.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ public int read(ByteBuffer dst) throws IOException{
315315
inCrypt.flip();
316316
unwrap();
317317

318-
inttransfered = transfereTo(inData, dst);
319-
if (transfered == 0 && isBlocking()){
318+
inttransferred = transfereTo(inData, dst);
319+
if (transferred == 0 && isBlocking()){
320320
continue;
321321
}
322-
returntransfered;
322+
returntransferred;
323323
}
324324
}
325325
/**

‎src/main/java/org/java_websocket/WebSocket.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public interface WebSocket{
5959

6060
/**
6161
* This will close the connection immediately without a proper close handshake.
62-
* The code and the message therefore won't be transfered over the wire also they will be forwarded to onClose/onWebsocketClose.
62+
* The code and the message therefore won't be transferred over the wire also they will be forwarded to onClose/onWebsocketClose.
6363
* @param code the closing code
6464
* @param message the closing message
6565
**/

‎src/main/java/org/java_websocket/WebSocketImpl.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public class WebSocketImpl implements WebSocket{
152152
privateStringresourceDescriptor = null;
153153

154154
/**
155-
* Attribute, when the last pong was recieved
155+
* Attribute, when the last pong was received
156156
*/
157157
privatelonglastPong = System.nanoTime();
158158

@@ -483,7 +483,7 @@ public void close( int code, String message ){
483483

484484
/**
485485
* This will close the connection immediately without a proper close handshake.
486-
* The code and the message therefore won't be transfered over the wire also they will be forwarded to onClose/onWebsocketClose.
486+
* The code and the message therefore won't be transferred over the wire also they will be forwarded to onClose/onWebsocketClose.
487487
*
488488
* @param code the closing code
489489
* @param message the closing message
@@ -789,9 +789,9 @@ public String getResourceDescriptor(){
789789
}
790790

791791
/**
792-
* Getter for the last pong recieved
792+
* Getter for the last pong received
793793
*
794-
* @return the timestamp for the last recieved pong
794+
* @return the timestamp for the last received pong
795795
*/
796796
longgetLastPong(){
797797
returnlastPong;

‎src/main/java/org/java_websocket/WebSocketListener.java‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public interface WebSocketListener{
117117
* Indicates that a complete WebSocket connection has been established,
118118
* and we are ready to send/receive data.
119119
*
120-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
120+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
121121
* @param d The handshake of the websocket instance
122122
*/
123123
voidonWebsocketOpen( WebSocketconn, Handshakedatad );
@@ -126,7 +126,7 @@ public interface WebSocketListener{
126126
* Called after <tt>WebSocket#close</tt> is explicity called, or when the
127127
* other end of the WebSocket connection is closed.
128128
*
129-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
129+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
130130
* @param code The codes can be looked up here:{@link CloseFrame}
131131
* @param reason Additional information string
132132
* @param remote Returns whether or not the closing of the connection was initiated by the remote host.
@@ -135,7 +135,7 @@ public interface WebSocketListener{
135135

136136
/** Called as soon as no further frames are accepted
137137
*
138-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
138+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
139139
* @param code The codes can be looked up here:{@link CloseFrame}
140140
* @param reason Additional information string
141141
* @param remote Returns whether or not the closing of the connection was initiated by the remote host.
@@ -144,7 +144,7 @@ public interface WebSocketListener{
144144

145145
/** send when this peer sends a close handshake
146146
*
147-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
147+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
148148
* @param code The codes can be looked up here:{@link CloseFrame}
149149
* @param reason Additional information string
150150
*/
@@ -154,7 +154,7 @@ public interface WebSocketListener{
154154
* Called if an exception worth noting occurred.
155155
* If an error causes the connection to fail onClose will be called additionally afterwards.
156156
*
157-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
157+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
158158
* @param ex
159159
* The exception that occurred. <br>
160160
* Might be null if the exception is not related to any specific connection. For example if the server port could not be bound.
@@ -165,7 +165,7 @@ public interface WebSocketListener{
165165
* Called a ping frame has been received.
166166
* This method must send a corresponding pong by itself.
167167
*
168-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
168+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
169169
* @param f The ping frame. Control frames may contain payload.
170170
*/
171171
voidonWebsocketPing( WebSocketconn, Framedataf );
@@ -181,28 +181,28 @@ public interface WebSocketListener{
181181
/**
182182
* Called when a pong frame is received.
183183
*
184-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
184+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
185185
* @param f The pong frame. Control frames may contain payload.
186186
**/
187187
voidonWebsocketPong( WebSocketconn, Framedataf );
188188

189189
/** This method is used to inform the selector thread that there is data queued to be written to the socket.
190-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
190+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
191191
*/
192192
voidonWriteDemand( WebSocketconn );
193193

194194
/**
195195
* @see WebSocket#getLocalSocketAddress()
196196
*
197-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
197+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
198198
* @return Returns the address of the endpoint this socket is bound to.
199199
*/
200200
InetSocketAddressgetLocalSocketAddress( WebSocketconn );
201201

202202
/**
203203
* @see WebSocket#getRemoteSocketAddress()
204204
*
205-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
205+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
206206
* @return Returns the address of the endpoint this socket is connected to, or{@code null} if it is unconnected.
207207
*/
208208
InetSocketAddressgetRemoteSocketAddress( WebSocketconn );

‎src/main/java/org/java_websocket/drafts/Draft.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
importorg.java_websocket.util.Charsetfunctions;
5252

5353
/**
54-
* Base class for everything of a websocket specification which is not common such as the way the handshake is read or frames are transfered.
54+
* Base class for everything of a websocket specification which is not common such as the way the handshake is read or frames are transferred.
5555
**/
5656
publicabstractclassDraft{
5757

‎src/main/java/org/java_websocket/exceptions/IncompleteHandshakeException.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
packageorg.java_websocket.exceptions;
2727

2828
/**
29-
* exception which indicates that a incomplete handshake was recieved
29+
* exception which indicates that a incomplete handshake was received
3030
*/
3131
publicclassIncompleteHandshakeExceptionextendsRuntimeException{
3232

@@ -36,14 +36,14 @@ public class IncompleteHandshakeException extends RuntimeException{
3636
privatestaticfinallongserialVersionUID = 7906596804233893092L;
3737

3838
/**
39-
* attribut which size of handshake would have been prefered
39+
* attribut which size of handshake would have been preferred
4040
*/
4141
privatefinalintpreferredSize;
4242

4343
/**
4444
* constructor for a IncompleteHandshakeException
4545
* <p>
46-
* @param preferredSize the prefered size
46+
* @param preferredSize the preferred size
4747
*/
4848
publicIncompleteHandshakeException(intpreferredSize){
4949
this.preferredSize = preferredSize;

0 commit comments

Comments
(0)