X Tutup
Skip to content

Commit 4e67f80

Browse files
committed
Add spring-websocket module
1 parent 34bcdcf commit 4e67f80

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed

build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
512528
project("spring-webmvc") {
513529
description = "Spring Web MVC"
514530
dependencies {

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ include "spring-web"
2121
include "spring-webmvc"
2222
include "spring-webmvc-portlet"
2323
include "spring-webmvc-tiles3"
24+
include "spring-websocket"
2425

2526
// Exposes gradle buildSrc for IDE support
2627
include "buildSrc"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

spring-websocket/src/main/resources/.gitignore

Whitespace-only changes.

spring-websocket/src/test/java/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)
X Tutup