File tree Expand file tree Collapse file tree 5 files changed +49
-0
lines changed
java/org/springframework/websocket Expand file tree Collapse file tree 5 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,22 @@ project("spring-orm-hibernate4") {
509509 }
510510}
511511
512+ project(" spring-websocket" ) {
513+ description = " Spring WebSocket support"
514+ dependencies {
515+ compile(project(" :spring-core" ))
516+ compile(project(" :spring-context" ))
517+ compile(project(" :spring-web" ))
518+ optional(" javax.websocket:javax.websocket-api:1.0-b14" )
519+ }
520+
521+ repositories {
522+ maven { url " http://repo.springsource.org/libs-release" }
523+ maven { url " https://repository.apache.org" } // tomcat-websocket snapshot
524+ maven { url " https://maven.java.net/content/groups/public/" } // javax.websocket-*
525+ }
526+ }
527+
512528project(" spring-webmvc" ) {
513529 description = " Spring Web MVC"
514530 dependencies {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ include "spring-web"
2121include " spring-webmvc"
2222include " spring-webmvc-portlet"
2323include " spring-webmvc-tiles3"
24+ include " spring-websocket"
2425
2526// Exposes gradle buildSrc for IDE support
2627include " buildSrc"
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2002-2013 the original author or authors.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package org .springframework .websocket ;
18+
19+ import org .springframework .http .server .ServerHttpRequest ;
20+ import org .springframework .http .server .ServerHttpResponse ;
21+
22+
23+ /**
24+ *
25+ * @author Rossen Stoyanchev
26+ */
27+ public interface HandshakeRequestHandler {
28+
29+
30+ boolean doHandshake (ServerHttpRequest request , ServerHttpResponse response );
31+
32+ }
You can’t perform that action at this time.
0 commit comments