public class ServerObject
extends java.rmi.server.UnicastRemoteObject
| Modifier | Constructor and Description |
|---|---|
protected |
ServerObject(RemoteAdapterFactory factory)
Creates a basic server adapter that uses the given factory
to create new adapters.
|
| Modifier and Type | Method and Description |
|---|---|
protected RemoteAdapterFactory |
getFactory()
Returns the remote adapter factory used to create new adapters.
|
protected RemoteItem |
getRemoteItem(Item item)
Utility method for creating a remote reference for a local item.
|
protected RemoteNode |
getRemoteNode(Node node)
Utility method for creating a remote reference for a local node.
|
protected RemoteNodeType[] |
getRemoteNodeTypeArray(NodeType[] types)
Utility method for creating an array of remote references for
local node types.
|
protected RepositoryException |
getRepositoryException(RepositoryException ex)
Returns a cleaned version of the given exception.
|
protected Value |
getSerialValue(Value value)
Utility method for decorating a value.
|
protected Value[] |
getSerialValues(Value[] values)
Utility method for preparing an array of values for serialization.
|
clone, exportObject, exportObject, exportObject, unexportObjectprotected ServerObject(RemoteAdapterFactory factory) throws java.rmi.RemoteException
factory - remote adapter factoryjava.rmi.RemoteException - on RMI errorsprotected RemoteAdapterFactory getFactory()
protected RepositoryException getRepositoryException(RepositoryException ex)
ex - the original exceptionprotected RemoteItem getRemoteItem(Item item) throws java.rmi.RemoteException
If the item, this method calls the
getRemoteNode(Node) to return the correct remote type.
item - local node, property, or itemjava.rmi.RemoteException - on RMI errorsprotected RemoteNode getRemoteNode(Node node) throws java.rmi.RemoteException
node - local version, versionhistory, or normal nodejava.rmi.RemoteException - on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(NodeType[] types) throws java.rmi.RemoteException
A null input is treated as an empty array.
types - local node type arrayjava.rmi.RemoteException - 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 serialized