jist.runtime
Class ProxyPoint.ProxySocketFactory

java.lang.Object
  extended by java.rmi.server.RMISocketFactory
      extended by jist.runtime.ProxyPoint.ProxySocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory
Enclosing class:
ProxyPoint

public static class ProxyPoint.ProxySocketFactory
extends java.rmi.server.RMISocketFactory

An RMI socket factory that returns proxied sockets.


Field Summary
private  java.net.InetSocketAddress proxy
          proxy server host and port.
 
Constructor Summary
ProxyPoint.ProxySocketFactory(java.net.InetAddress host, int port)
          Create new RMI socket factory for given proxy server.
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          
 java.net.Socket createSocket(java.lang.String host, int port)
          
 
Methods inherited from class java.rmi.server.RMISocketFactory
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

private java.net.InetSocketAddress proxy
proxy server host and port.

Constructor Detail

ProxyPoint.ProxySocketFactory

public ProxyPoint.ProxySocketFactory(java.net.InetAddress host,
                                     int port)
Create new RMI socket factory for given proxy server.

Parameters:
host - proxy server host
port - proxy server port
Method Detail

createServerSocket

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

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

createSocket

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

Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Specified by:
createSocket in class java.rmi.server.RMISocketFactory
Throws:
java.io.IOException