|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
public class ServerObject
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.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
protected |
ServerObject(RemoteAdapterFactory factory)
Creates a basic server adapter that uses the given factory to create new adapters. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ServerObject(RemoteAdapterFactory factory) throws RemoteException
factory
- remote adapter factory
RemoteException
- on RMI errorsMethod Detail |
---|
protected RemoteAdapterFactory getFactory()
protected RepositoryException getRepositoryException(RepositoryException ex)
ex
- the original exception
protected 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 item
RemoteException
- on RMI errorsprotected RemoteNode getRemoteNode(Node node) throws RemoteException
node
- local version, versionhistory, or normal node
RemoteException
- on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(NodeType[] types) throws RemoteException
A null
input is treated as an empty array.
types
- local node type array
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 decorated
RepositoryException
- if the values can not be serializedprotected Value getSerialValue(Value value) throws RepositoryException
value
- the value to be decorated, or null
null
RepositoryException
- if the value can not be serialized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |