wt.boot
Class WTRMIURLSocketFactory

java.lang.Object
  extended byjava.rmi.server.RMISocketFactory
      extended bywt.boot.WTRMIURLSocketFactory
All Implemented Interfaces:
RMIClientSocketFactory, RMIHttpSocketFactory, RMIServerSocketFactory
Direct Known Subclasses:
WTRMIHttpsToCGISocketFactory, WTRMIHttpToCodebaseSocketFactory

public abstract class WTRMIURLSocketFactory
extends RMISocketFactory
implements RMIHttpSocketFactory

A RMI socket factory that returns sockets for performing RMI over URL connections.


Nested Class Summary
(package private) static class WTRMIURLSocketFactory.URLSocket
           
 
Field Summary
private  int logLevel
           
 
Fields inherited from class java.rmi.server.RMISocketFactory
 
Constructor Summary
WTRMIURLSocketFactory()
           
 
Method Summary
 ServerSocket createServerSocket(int port)
           
abstract  Socket createSocket(String host, int port)
           
protected  Socket createSocket(String host, int port, URL url)
           
 void setLogLevel(int i)
           
 
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

logLevel

private int logLevel
Constructor Detail

WTRMIURLSocketFactory

public WTRMIURLSocketFactory()
Method Detail

createSocket

public abstract Socket createSocket(String host,
                                    int port)
                             throws IOException
Specified by:
createSocket in interface RMIClientSocketFactory
Throws:
IOException

createSocket

protected Socket createSocket(String host,
                              int port,
                              URL url)
                       throws IOException
Throws:
IOException

setLogLevel

public void setLogLevel(int i)

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Specified by:
createServerSocket in interface RMIServerSocketFactory
Throws:
IOException