Class RMILocalClientSocketFactory
- java.lang.Object
-
- org.apache.manifoldcf.crawler.common.filenet.RMILocalClientSocketFactory
-
- All Implemented Interfaces:
java.io.Serializable
,java.rmi.server.RMIClientSocketFactory
public class RMILocalClientSocketFactory extends java.lang.Object implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable
This factory mints client-side sockets. I've created one so the $%^&* rmi world doesn't attempt to connect to anything other than localhost (127.0.0.1).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_rcsid
-
Constructor Summary
Constructors Constructor Description RMILocalClientSocketFactory()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
createSocket(java.lang.String host, int port)
The method that mints a socket of the right kind.boolean
equals(java.lang.Object o)
The contract makes us implement equals and hashcodeint
hashCode()
Hashcode consistent with equals()
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
The method that mints a socket of the right kind.- Specified by:
createSocket
in interfacejava.rmi.server.RMIClientSocketFactory
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
The contract makes us implement equals and hashcode- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Hashcode consistent with equals()- Overrides:
hashCode
in classjava.lang.Object
-
-