|
||||||||||
| 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.exoplatform.services.jcr.rmi.impl.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(javax.jcr.Item item)
Utility method for creating a remote reference for a local item. |
protected RemoteNode |
getRemoteNode(javax.jcr.Node node)
Utility method for creating a remote reference for a local node. |
protected RemoteNodeType[] |
getRemoteNodeTypeArray(javax.jcr.nodetype.NodeType[] types)
Utility method for creating an array of remote references for local node types. |
protected javax.jcr.RepositoryException |
getRepositoryException(javax.jcr.RepositoryException ex)
Returns a cleaned version of the given exception. |
| 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 java.rmi.RemoteException
factory - remote adapter factory
java.rmi.RemoteException - on RMI errors| Method Detail |
|---|
protected RemoteAdapterFactory getFactory()
protected javax.jcr.RepositoryException getRepositoryException(javax.jcr.RepositoryException ex)
ex - the original exception
protected RemoteItem getRemoteItem(javax.jcr.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 item
java.rmi.RemoteException - on RMI errors
protected RemoteNode getRemoteNode(javax.jcr.Node node)
throws java.rmi.RemoteException
node - local version, versionhistory, or normal node
java.rmi.RemoteException - on RMI errors
protected RemoteNodeType[] getRemoteNodeTypeArray(javax.jcr.nodetype.NodeType[] types)
throws java.rmi.RemoteException
A null input is treated as an empty array.
types - local node type array
java.rmi.RemoteException - on RMI errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||