Package org.springframework.web.socket.sockjs.transport.session

Examples of org.springframework.web.socket.sockjs.transport.session.AbstractHttpSockJsSession


  @Override
  public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response,
      WebSocketHandler wsHandler, SockJsSession wsSession) throws SockJsException {

    AbstractHttpSockJsSession sockJsSession = (AbstractHttpSockJsSession) wsSession;

    String protocol = null; // https://github.com/sockjs/sockjs-client/issues/130
    sockJsSession.setAcceptedProtocol(protocol);

    // Set content type before writing
    response.getHeaders().setContentType(getContentType());

    handleRequestInternal(request, response, sockJsSession);
View Full Code Here


  @Override
  public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response,
      WebSocketHandler wsHandler, SockJsSession wsSession) throws SockJsException {

    Assert.notNull(wsSession, "No session");
    AbstractHttpSockJsSession sockJsSession = (AbstractHttpSockJsSession) wsSession;

    handleRequestInternal(request, response, wsHandler, sockJsSession);
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.socket.sockjs.transport.session.AbstractHttpSockJsSession

Copyright © 2018 www.massapicom. 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.