Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2016 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.
|
||||
@@ -25,11 +25,10 @@ package org.springframework.web.socket;
|
||||
public interface WebSocketMessage<T> {
|
||||
|
||||
/**
|
||||
* Returns the message payload. This will never be {@code null}.
|
||||
* Return the message payload (never {@code null}).
|
||||
*/
|
||||
T getPayload();
|
||||
|
||||
|
||||
/**
|
||||
* Return the number of bytes contained in the message.
|
||||
*/
|
||||
|
||||
@@ -80,10 +80,10 @@ public abstract class AbstractSockJsSession implements SockJsSession {
|
||||
private static final Set<String> disconnectedClientExceptions;
|
||||
|
||||
static {
|
||||
Set<String> set = new HashSet<String>(2);
|
||||
set.add("ClientAbortException"); // Tomcat
|
||||
set.add("EOFException"); // Tomcat
|
||||
set.add("EofException"); // Jetty
|
||||
Set<String> set = new HashSet<String>(4);
|
||||
set.add("ClientAbortException"); // Tomcat
|
||||
set.add("EOFException"); // Tomcat
|
||||
set.add("EofException"); // Jetty
|
||||
// java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered)
|
||||
disconnectedClientExceptions = Collections.unmodifiableSet(set);
|
||||
}
|
||||
@@ -208,7 +208,7 @@ public abstract class AbstractSockJsSession implements SockJsSession {
|
||||
writeFrameInternal(SockJsFrame.closeFrame(status.getCode(), status.getReason()));
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
logger.debug("Failure while send SockJS close frame", ex);
|
||||
logger.debug("Failure while sending SockJS close frame", ex);
|
||||
}
|
||||
}
|
||||
updateLastActiveTime();
|
||||
|
||||
Reference in New Issue
Block a user