1 18 package org.apache.activemq.transport.stomp; 19 20 import org.apache.activemq.transport.tcp.SslSocketHelper; 21 22 import javax.net.ssl.SSLSocketFactory; 23 import javax.net.ssl.SSLSocket; 24 import javax.net.SocketFactory; 25 import java.net.Socket ; 26 import java.net.URI ; 27 import java.io.IOException ; 28 29 32 public class StompSslTest extends StompTest { 33 34 protected void setUp() throws Exception { 35 bindAddress = "stomp+ssl://localhost:0"; 36 super.setUp(); 37 } 38 39 protected Socket createSocket(URI connectUri) throws IOException { 40 SocketFactory factory = SSLSocketFactory.getDefault(); 41 return factory.createSocket("127.0.0.1", connectUri.getPort()); 42 } 43 } 44 | Popular Tags |