Examples of SockJsService


Examples of org.springframework.web.socket.sockjs.SockJsService

  }

  protected final M getMappings() {
    M mappings = createMappings();
    if (this.sockJsServiceRegistration != null) {
      SockJsService sockJsService = this.sockJsServiceRegistration.getSockJsService();
      for (WebSocketHandler wsHandler : this.handlerMap.keySet()) {
        for (String path : this.handlerMap.get(wsHandler)) {
          String pathPattern = path.endsWith("/") ? path + "**" : path + "/**";
          addSockJsServiceMapping(mappings, sockJsService, wsHandler, pathPattern);
        }
View Full Code Here

Examples of org.springframework.web.socket.sockjs.SockJsService

  }

  public final MultiValueMap<HttpRequestHandler, String> getMappings() {
    MultiValueMap<HttpRequestHandler, String> mappings = new LinkedMultiValueMap<HttpRequestHandler, String>();
    if (this.registration != null) {
      SockJsService sockJsService = this.registration.getSockJsService();
      for (String path : this.paths) {
        String pattern = path.endsWith("/") ? path + "**" : path + "/**";
        SockJsHttpRequestHandler handler = new SockJsHttpRequestHandler(sockJsService, this.webSocketHandler);
        mappings.add(handler, pattern);
      }
View Full Code Here

Examples of org.springframework.web.socket.sockjs.SockJsService

    private GameHandler gameHandler;

    @Bean
    public SimpleUrlHandlerMapping handlerMapping() {

        SockJsService sockJsService = new DefaultSockJsService(taskScheduler());

        Map<String, Object> urlMap = new HashMap<String, Object>();
        urlMap.put("/game/websocket/**", new SockJsHttpRequestHandler(sockJsService, gameHandler));

        SimpleUrlHandlerMapping hm = new SimpleUrlHandlerMapping();
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.