public class ServerObject extends UnicastRemoteObject
ref
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(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.
|
protected javax.jcr.Value |
getSerialValue(javax.jcr.Value value)
Utility method for decorating a value.
|
protected javax.jcr.Value[] |
getSerialValues(javax.jcr.Value[] values)
Utility method for preparing an array of values for serialization.
|
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
protected ServerObject(RemoteAdapterFactory factory) throws RemoteException
factory
- remote adapter factoryRemoteException
- on RMI errorsprotected RemoteAdapterFactory getFactory()
protected javax.jcr.RepositoryException getRepositoryException(javax.jcr.RepositoryException ex)
ex
- the original exceptionprotected RemoteItem getRemoteItem(javax.jcr.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(javax.jcr.Node node) throws RemoteException
node
- local version, versionhistory, or normal nodeRemoteException
- on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(javax.jcr.nodetype.NodeType[] types) throws RemoteException
A null
input is treated as an empty array.
types
- local node type arrayRemoteException
- on RMI errorsprotected javax.jcr.Value[] getSerialValues(javax.jcr.Value[] values) throws javax.jcr.RepositoryException
If the given array is null
, then an empty array is
returned.
values
- the values to be decoratedjavax.jcr.RepositoryException
- if the values can not be serializedprotected javax.jcr.Value getSerialValue(javax.jcr.Value value) throws javax.jcr.RepositoryException
value
- the value to be decorated, or null
null
javax.jcr.RepositoryException
- if the value can not be serializedCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.