org.jboss.test.jrmp.ejb
Class CompressionServerSocketFactory

java.lang.Object
  extended byorg.jboss.test.jrmp.ejb.CompressionServerSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIServerSocketFactory, java.io.Serializable

public class CompressionServerSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIServerSocketFactory, java.io.Serializable

The CompressionServerSocketFactory from the RMI custom socket factory tutorial.

See Also:
Serialized Form

Constructor Summary
CompressionServerSocketFactory()
           
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          Create a server socket on the specified port (port 0 indicates an anonymous port).
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionServerSocketFactory

public CompressionServerSocketFactory()
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Create a server socket on the specified port (port 0 indicates an anonymous port).

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Parameters:
port - the port number
Returns:
the server socket on the specified port
Throws:
java.io.IOException - if an I/O error occurs during server socket creation
Since:
1.2

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()