com.rmidoves
Class ServerRmiDovesSocketFactory

java.lang.Object
  |
  +--java.rmi.server.RMISocketFactory
        |
        +--com.rmidoves.ServerRmiDovesSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory

public class ServerRmiDovesSocketFactory
extends java.rmi.server.RMISocketFactory

Server side socket factory which allows the server to make callbacks to a client . Needs to be installed on the server, if at list one of the clients is using ClientRmiDovesSocketFactory in the "CONNECT" tunneling mode or server is behind Firewall.

Author:
RMI Doves

Constructor Summary
ServerRmiDovesSocketFactory()
          Constructs
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          createServerSocket:
 java.net.Socket createSocket(java.lang.String address, int port)
          createSocket:
 
Methods inherited from class java.rmi.server.RMISocketFactory
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRmiDovesSocketFactory

public ServerRmiDovesSocketFactory()
Constructs

Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String address,
                                    int port)
                             throws java.io.IOException
createSocket:

Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Specified by:
createSocket in class java.rmi.server.RMISocketFactory
Parameters:
address -
port -
Returns:
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
createServerSocket:

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Specified by:
createServerSocket in class java.rmi.server.RMISocketFactory
Parameters:
port -
Returns:
Throws:
java.io.IOException