wt.boot
Class WTRMIHttpToCodebaseSocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
wt.boot.WTRMIURLSocketFactory
wt.boot.WTRMIHttpToCodebaseSocketFactory
- All Implemented Interfaces:
- RMIClientSocketFactory, RMIHttpSocketFactory, RMIServerSocketFactory
- public class WTRMIHttpToCodebaseSocketFactory
- extends WTRMIURLSocketFactory
A RMI socket factory that returns sockets for performing RMI over HTTP or HTTPS
URL connections where protocol, hostname, and port number are derived from
the codebase URL of this factory rather than arguments to the createSocket method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA2_SECURITY
private static final boolean JAVA2_SECURITY
javarmiTable
private static Hashtable javarmiTable
codebase
private URL codebase
codebase_property
private String codebase_property
WTRMIHttpToCodebaseSocketFactory
public WTRMIHttpToCodebaseSocketFactory()
throws IOException
WTRMIHttpToCodebaseSocketFactory
public WTRMIHttpToCodebaseSocketFactory(URL codebase)
WTRMIHttpToCodebaseSocketFactory
public WTRMIHttpToCodebaseSocketFactory(URL codebase,
String codebase_property)
checkForJ2Security
private static boolean checkForJ2Security()
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket
in interface RMIClientSocketFactory
- Specified by:
createSocket
in class WTRMIURLSocketFactory
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port)
throws IOException
- Specified by:
createServerSocket
in interface RMIServerSocketFactory
- Overrides:
createServerSocket
in class WTRMIURLSocketFactory
- Throws:
IOException
determineCodebase
private void determineCodebase()
throws IOException
- Throws:
IOException
getJavaRMI
private String getJavaRMI(URL codebase)
getSecurityContextCodebase
private URL getSecurityContextCodebase()
getClassLoaderCodebase
private URL getClassLoaderCodebase()
getProperty
private static String getProperty(String name)
getProperty
private static String getProperty(String name,
String def)
getPropertyJ2
private static String getPropertyJ2(String name,
String def)