Examples of beforeHandshake()


Examples of org.springframework.web.socket.server.HandshakeInterceptor.beforeHandshake()

  public boolean applyBeforeHandshake(ServerHttpRequest request, ServerHttpResponse response,
      Map<String, Object> attributes) throws Exception {

    for (int i = 0; i < this.interceptors.size(); i++) {
      HandshakeInterceptor interceptor = this.interceptors.get(i);
      if (!interceptor.beforeHandshake(request, response, this.wsHandler, attributes)) {
        if (logger.isDebugEnabled()) {
          logger.debug(interceptor + " returns false from beforeHandshake - precluding handshake");
        }
        applyAfterHandshake(request, response, null);
        return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.