|
|
|
@ -32,6 +32,8 @@ import org.springframework.web.socket.sockjs.transport.TransportHandlingSockJsSe |
|
|
|
import org.springframework.web.socket.sockjs.transport.handler.DefaultSockJsService; |
|
|
|
import org.springframework.web.socket.sockjs.transport.handler.DefaultSockJsService; |
|
|
|
import org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler; |
|
|
|
import org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Provides utility methods for parsing common WebSocket XML namespace elements. |
|
|
|
* Provides utility methods for parsing common WebSocket XML namespace elements. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -43,7 +45,7 @@ class WebSocketNamespaceUtils { |
|
|
|
|
|
|
|
|
|
|
|
// Check for setRemoveOnCancelPolicy method - available on JDK 7 and higher
|
|
|
|
// Check for setRemoveOnCancelPolicy method - available on JDK 7 and higher
|
|
|
|
private static boolean hasRemoveOnCancelPolicyMethod = ClassUtils.hasMethod( |
|
|
|
private static boolean hasRemoveOnCancelPolicyMethod = ClassUtils.hasMethod( |
|
|
|
WebSocketNamespaceUtils.class, "setRemoveOnCancelPolicy", boolean.class); |
|
|
|
ScheduledThreadPoolExecutor.class, "setRemoveOnCancelPolicy", boolean.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static RuntimeBeanReference registerHandshakeHandler(Element element, ParserContext parserContext, Object source) { |
|
|
|
public static RuntimeBeanReference registerHandshakeHandler(Element element, ParserContext parserContext, Object source) { |
|
|
|
|