Package org.springframework.web.socket.sockjs.frame

Examples of org.springframework.web.socket.sockjs.frame.SockJsMessageCodec.decode()


    SockJsMessageCodec messageCodec = getServiceConfig().getMessageCodec();
    MediaType contentType = request.getHeaders().getContentType();
    if (contentType != null && MediaType.APPLICATION_FORM_URLENCODED.isCompatibleWith(contentType)) {
      MultiValueMap<String, String> map = this.formConverter.read(null, request);
      String d = map.getFirst("d");
      return (StringUtils.hasText(d) ? messageCodec.decode(d) : null);
    }
    else {
      return messageCodec.decodeInputStream(request.getBody());
    }
  }
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.