Skip to content

Commit

Permalink
Minor polish and FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Apr 23, 2013
1 parent ff2e9aa commit db4de52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static String getSockJsSessionId(WebSocketSession wsSession) {
Assert.notNull(wsSession, "wsSession is required");
String path = wsSession.getURI().getPath();
String[] segments = StringUtils.tokenizeToStringArray(path, "/");
Assert.isTrue(segments.length > 3, "SockJS request should have at least 3 patgh segments: " + path);
Assert.isTrue(segments.length > 3, "SockJS request should have at least 3 path segments: " + path);
return segments[segments.length-2];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public interface RequestUpgradeStrategy {
* @param handler the handler for WebSocket messages
*/
void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol,
HandlerProvider<WebSocketHandler> handler) throws Exception;
HandlerProvider<WebSocketHandler> handlerProvider) throws Exception;
// FIXME how to indicate failure to upgrade?

}

0 comments on commit db4de52

Please sign in to comment.