APIdia Launch Partner
Top Description Fields Constructors Methods
sun.rmi.server

public Class UnicastServerRef2

extends UnicastServerRef
Class Inheritance
Imports
java.io.ObjectInputFilter, .ObjectOutput, java.rmi.server.RMIClientSocketFactory, .RMIServerSocketFactory, .RemoteRef, sun.rmi.transport.LiveRef

References Deprecated

UnicastServerRef is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Server-side ref for a remote impl that uses a custom socket factory.
Authors
Ann Wollrath, Roger Riggs

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from sun.rmi.server.UnicastServerRef:
callLoglogCalls

Constructor Summary

AccessConstructor and Description
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(LiveRef ref, ObjectInputFilter filter)

Construct a Unicast server remote reference for a specified liveRef and filter.

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

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

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

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

Method Summary

Modifier and TypeMethod and Description
protected RemoteRef
getClientRef()

Overrides sun.rmi.server.UnicastServerRef.getClientRef.

Return the client remote reference for this remoteRef.

public String
getRefClass(ObjectOutput out)

Overrides sun.rmi.server.UnicastServerRef.getRefClass.

Implements java.rmi.server.RemoteRef.getRefClass.

Returns the class of the ref type to be serialized

Inherited from sun.rmi.server.UnicastServerRef:
clearStackTracesdispatchexportObjectexportObjectgetClientHostreadExternalsetSkeletonunmarshalCustomCallDatawriteExternal

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.rmi.server.UnicastServerRef.serialVersionUID, java.rmi.server.ServerRef.serialVersionUID, java.rmi.server.RemoteRef.serialVersionUID.

Constructor Detail

UnicastServerRef2back to summary
public UnicastServerRef2()

Create a new (empty) Unicast server remote reference.

UnicastServerRef2back to summary
public UnicastServerRef2(LiveRef ref)

Construct a Unicast server remote reference for a specified liveRef.

UnicastServerRef2back to summary
public UnicastServerRef2(LiveRef ref, ObjectInputFilter filter)

Construct a Unicast server remote reference for a specified liveRef and filter.

UnicastServerRef2back to summary
public UnicastServerRef2(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)

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

UnicastServerRef2back to summary
public UnicastServerRef2(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, ObjectInputFilter filter)

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

Method Detail

getClientRefback to summary
protected RemoteRef getClientRef()

Overrides sun.rmi.server.UnicastServerRef.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.

getRefClassback to summary
public String getRefClass(ObjectOutput out)

Overrides sun.rmi.server.UnicastServerRef.getRefClass.

Implements java.rmi.server.RemoteRef.getRefClass.

Returns the class of the ref type to be serialized