1 22 package org.jboss.test.invokers.ejb; 23 24 import java.io.IOException ; 25 import java.io.Serializable ; 26 import java.net.Socket ; 27 import java.rmi.server.RMIClientSocketFactory ; 28 29 35 public class CompressionClientSocketFactory implements RMIClientSocketFactory , Serializable 36 { 37 43 public Socket createSocket(String host, int port) throws IOException 44 { 45 Socket s = new CompressionSocket(host, port); 46 return s; 47 } 48 49 public boolean equals(Object obj) 50 { 51 return obj instanceof CompressionClientSocketFactory; 52 } 53 54 public int hashCode() 55 { 56 return getClass().getName().hashCode(); 57 } 58 } 59 | Popular Tags |