Base class for remote adapters. The purpose of this class is to centralize the handling of the RemoteAdapterFactory instance used to instantiate new server adapters.
@Deprecated public class ServerObject extends UnicastRemoteObject
ref| Modifier | Constructor and Description | 
|---|---|
| protected  | ServerObject(RemoteAdapterFactory factory)Deprecated.  Creates a basic server adapter that uses the given factory
 to create new adapters. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected RemoteAdapterFactory | getFactory()Deprecated.  Returns the remote adapter factory used to create new adapters. | 
| protected RemoteItem | getRemoteItem(Item item)Deprecated.  Utility method for creating a remote reference for a local item. | 
| protected RemoteNode | getRemoteNode(Node node)Deprecated.  Utility method for creating a remote reference for a local node. | 
| protected RemoteNodeType[] | getRemoteNodeTypeArray(NodeType[] types)Deprecated.  Utility method for creating an array of remote references for
 local node types. | 
| protected RepositoryException | getRepositoryException(RepositoryException ex)Deprecated.  Returns a cleaned version of the given exception. | 
| protected Value | getSerialValue(Value value)Deprecated.  Utility method for decorating a value. | 
| protected Value[] | getSerialValues(Value[] values)Deprecated.  Utility method for preparing an array of values for serialization. | 
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogprotected ServerObject(RemoteAdapterFactory factory) throws RemoteException
factory - remote adapter factoryRemoteException - on RMI errorsprotected RemoteAdapterFactory getFactory()
protected RepositoryException getRepositoryException(RepositoryException ex)
ex - the original exceptionprotected RemoteItem getRemoteItem(Item item) throws RemoteException
 If the item, this method calls the
 getRemoteNode(Node) to return the correct remote type.
item - local node, property, or itemRemoteException - on RMI errorsprotected RemoteNode getRemoteNode(Node node) throws RemoteException
node - local version, versionhistory, or normal nodeRemoteException - on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(NodeType[] types) throws RemoteException
 A null input is treated as an empty array.
types - local node type arrayRemoteException - on RMI errorsprotected Value[] getSerialValues(Value[] values) throws RepositoryException
 If the given array is null, then an empty array is
 returned.
values - the values to be decoratedRepositoryException - if the values can not be serializedprotected Value getSerialValue(Value value) throws RepositoryException
value - the value to be decorated, or nullnullRepositoryException - if the value can not be serializedCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.