1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* Creates and exports a new UnicastRemoteObject object using the
* particular supplied port and socket factories.
* @param port the port number on which the remote object receives calls
* (if <code>port</code> is zero, an anonymous port is chosen)
* @param csf the client-side socket factory for making calls to the
* remote object
* @param ssf the server-side socket factory for receiving remote calls
* @throws RemoteException if failed to export object
* @since 1.2
*/
protected
UnicastRemoteObject(
int
port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws
RemoteException
{
this
.port = port;
this
.csf = csf;
this
.ssf = ssf;
exportObject((Remote)
this
, port, csf, ssf);
}
|
1
|
public
class
SslRMIServerSocketFactory
implements
RMIServerSocketFactory
|
1
2
|
public
class
SslRMIClientSocketFactory
implements
RMIClientSocketFactory, Serializable
|