Add spring-websocket module

This commit is contained in:
Rossen Stoyanchev 2013-03-10 09:54:11 -04:00
parent 34bcdcfe85
commit 4e67f809fb
5 changed files with 49 additions and 0 deletions

View File

@ -509,6 +509,22 @@ project("spring-orm-hibernate4") {
}
}
project("spring-websocket") {
description = "Spring WebSocket support"
dependencies {
compile(project(":spring-core"))
compile(project(":spring-context"))
compile(project(":spring-web"))
optional("javax.websocket:javax.websocket-api:1.0-b14")
}
repositories {
maven { url "http://repo.springsource.org/libs-release" }
maven { url "https://repository.apache.org" } // tomcat-websocket snapshot
maven { url "https://maven.java.net/content/groups/public/" } // javax.websocket-*
}
}
project("spring-webmvc") {
description = "Spring Web MVC"
dependencies {

View File

@ -21,6 +21,7 @@ include "spring-web"
include "spring-webmvc"
include "spring-webmvc-portlet"
include "spring-webmvc-tiles3"
include "spring-websocket"
// Exposes gradle buildSrc for IDE support
include "buildSrc"

View File

@ -0,0 +1,32 @@
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.websocket;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
/**
*
* @author Rossen Stoyanchev
*/
public interface HandshakeRequestHandler {
boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response);
}

View File

View File