Browse Source

Add spring-websocket module

pull/292/head
Rossen Stoyanchev 12 years ago
parent
commit
4e67f809fb
  1. 16
      build.gradle
  2. 1
      settings.gradle
  3. 32
      spring-websocket/src/main/java/org/springframework/websocket/HandshakeRequestHandler.java
  4. 0
      spring-websocket/src/main/resources/.gitignore
  5. 0
      spring-websocket/src/test/java/.gitignore

16
build.gradle

@ -509,6 +509,22 @@ project("spring-orm-hibernate4") { @@ -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 {

1
settings.gradle

@ -21,6 +21,7 @@ include "spring-web" @@ -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"

32
spring-websocket/src/main/java/org/springframework/websocket/HandshakeRequestHandler.java

@ -0,0 +1,32 @@ @@ -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);
}

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

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

Loading…
Cancel
Save