Add JdkIdGenerator and use it in SockJS client

Issue: SPR-12658
This commit is contained in:
Rossen Stoyanchev
2015-01-22 21:27:36 -05:00
parent 7621cc787d
commit d63cfc8eeb
4 changed files with 86 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@ package org.springframework.web.socket.sockjs.client;
import java.net.URI;
import java.util.UUID;
import org.springframework.util.AlternativeJdkIdGenerator;
import org.springframework.util.IdGenerator;
import org.springframework.util.JdkIdGenerator;
import org.springframework.web.socket.sockjs.transport.TransportType;
import org.springframework.web.util.UriComponentsBuilder;
@@ -33,7 +33,7 @@ import org.springframework.web.util.UriComponentsBuilder;
*/
public class SockJsUrlInfo {
private static final IdGenerator idGenerator = new AlternativeJdkIdGenerator();
private static final IdGenerator idGenerator = new JdkIdGenerator();
private final URI sockJsUrl;