public class

UnicastServerRef2

extends UnicastServerRef
java.lang.Object
   ↳ sun.rmi.server.UnicastRef
     ↳ sun.rmi.server.UnicastServerRef
       ↳ sun.rmi.server.UnicastServerRef2
Known Direct Subclasses

Class Overview

Server-side ref for a remote impl that uses a custom socket factory.

Summary

[Expand]
Inherited Constants
From interface java.rmi.server.RemoteRef
From interface java.rmi.server.ServerRef
[Expand]
Inherited Fields
From class sun.rmi.server.UnicastServerRef
From class sun.rmi.server.UnicastRef
Public Constructors
UnicastServerRef2()
Create a new (empty) Unicast server remote reference.
UnicastServerRef2(LiveRef ref)
Construct a Unicast server remote reference for a specified liveRef.
UnicastServerRef2(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
Construct a Unicast server remote reference to be exported on the specified port.
Public Methods
String getRefClass(ObjectOutput out)
Returns the class of the ref type to be serialized
Protected Methods
RemoteRef getClientRef()
Return the client remote reference for this remoteRef.
[Expand]
Inherited Methods
From class sun.rmi.server.UnicastServerRef
From class sun.rmi.server.UnicastRef
From class java.lang.Object
From interface java.io.Externalizable
From interface java.rmi.server.RemoteRef
From interface java.rmi.server.ServerRef
From interface sun.rmi.server.Dispatcher

Public Constructors

public UnicastServerRef2 ()

Create a new (empty) Unicast server remote reference.

public UnicastServerRef2 (LiveRef ref)

Construct a Unicast server remote reference for a specified liveRef.

public UnicastServerRef2 (int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)

Construct a Unicast server remote reference to be exported on the specified port.

Public Methods

public String getRefClass (ObjectOutput out)

Returns the class of the ref type to be serialized

Parameters
out the output stream to which the reference will be serialized
Returns
  • the class name (without package qualification) of the reference type

Protected Methods

protected RemoteRef getClientRef ()

Return the client remote reference for this remoteRef. In the case of a client RemoteRef "this" is the answer. For a server remote reference, a client side one will have to found or created.