Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f7f53e4e
Commit
f7f53e4e
authored
Dec 03, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for upstream Spring 4.0 changes
parent
322b0377
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
SimpleClientWebSocketHandler.java
...amples/websocket/client/SimpleClientWebSocketHandler.java
+2
-2
SampleWebSocketsApplication.java
...samples/websocket/config/SampleWebSocketsApplication.java
+1
-1
EchoWebSocketHandler.java
...ork/boot/samples/websocket/echo/EchoWebSocketHandler.java
+2
-2
SnakeWebSocketHandler.java
...k/boot/samples/websocket/snake/SnakeWebSocketHandler.java
+2
-2
SampleWebSocketsApplicationTests.java
...ples/websocket/echo/SampleWebSocketsApplicationTests.java
+1
-1
No files found.
spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/client/SimpleClientWebSocketHandler.java
View file @
f7f53e4e
...
...
@@ -23,9 +23,9 @@ import org.apache.commons.logging.LogFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.
adapter.TextWebSocketHandlerAdapt
er
;
import
org.springframework.web.socket.
handler.TextWebSocketHandl
er
;
public
class
SimpleClientWebSocketHandler
extends
TextWebSocketHandler
Adapter
{
public
class
SimpleClientWebSocketHandler
extends
TextWebSocketHandler
{
protected
Log
logger
=
LogFactory
.
getLog
(
SimpleClientWebSocketHandler
.
class
);
...
...
spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/config/SampleWebSocketsApplication.java
View file @
f7f53e4e
...
...
@@ -29,7 +29,7 @@ import org.springframework.boot.web.SpringBootServletInitializer;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.socket.WebSocketHandler
;
import
org.springframework.web.socket.
support
.PerConnectionWebSocketHandler
;
import
org.springframework.web.socket.
handler
.PerConnectionWebSocketHandler
;
@Configuration
@EnableAutoConfiguration
...
...
spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/echo/EchoWebSocketHandler.java
View file @
f7f53e4e
...
...
@@ -23,12 +23,12 @@ import org.springframework.web.socket.CloseStatus;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketHandler
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.
adapter.TextWebSocketHandlerAdapt
er
;
import
org.springframework.web.socket.
handler.TextWebSocketHandl
er
;
/**
* Echo messages by implementing a Spring {@link WebSocketHandler} abstraction.
*/
public
class
EchoWebSocketHandler
extends
TextWebSocketHandler
Adapter
{
public
class
EchoWebSocketHandler
extends
TextWebSocketHandler
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
EchoWebSocketHandler
.
class
);
...
...
spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/snake/SnakeWebSocketHandler.java
View file @
f7f53e4e
...
...
@@ -25,9 +25,9 @@ import java.util.concurrent.atomic.AtomicInteger;
import
org.springframework.web.socket.CloseStatus
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.
adapter.TextWebSocketHandlerAdapt
er
;
import
org.springframework.web.socket.
handler.TextWebSocketHandl
er
;
public
class
SnakeWebSocketHandler
extends
TextWebSocketHandler
Adapter
{
public
class
SnakeWebSocketHandler
extends
TextWebSocketHandler
{
public
static
final
int
PLAYFIELD_WIDTH
=
640
;
public
static
final
int
PLAYFIELD_HEIGHT
=
480
;
...
...
spring-boot-samples/spring-boot-sample-websocket/src/test/java/org/springframework/boot/samples/websocket/echo/SampleWebSocketsApplicationTests.java
View file @
f7f53e4e
...
...
@@ -37,7 +37,7 @@ import org.springframework.context.ConfigurableApplicationContext;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.socket.client.WebSocketConnectionManager
;
import
org.springframework.web.socket.client.
endpoint
.StandardWebSocketClient
;
import
org.springframework.web.socket.client.
standard
.StandardWebSocketClient
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment