1 22 package org.jboss.test.jrmp.ejb; 23 24 import java.io.IOException ; 25 import java.io.Serializable ; 26 import java.net.ServerSocket ; 27 import java.rmi.server.RMIServerSocketFactory ; 28 29 35 public class CompressionServerSocketFactory implements RMIServerSocketFactory , Serializable 36 { 37 46 public ServerSocket createServerSocket(int port) throws IOException 47 { 48 ServerSocket activeSocket = new CompressionServerSocket(port); 49 return activeSocket; 50 } 51 52 public boolean equals(Object obj) 53 { 54 return obj instanceof CompressionServerSocketFactory; 55 } 56 57 public int hashCode() 58 { 59 return getClass().getName().hashCode(); 60 } 61 } 62 | Popular Tags |