|
||||||||||
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
org.apache.jackrabbit.rmi.server.ServerNamespaceRegistry
public class ServerNamespaceRegistry
Remote adapter for the JCR
NamespaceRegistry
interface.
This class makes a local namespace registry available as an RMI service
using the
RemoteNamespaceRegistry
interface.
NamespaceRegistry
,
RemoteNamespaceRegistry
,
Serialized FormField Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
ServerNamespaceRegistry(NamespaceRegistry registry,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local namespace registry. |
Method Summary | |
---|---|
String |
getPrefix(String uri)
Remote version of the NamespaceRegistry.getPrefix(String)
method. |
String[] |
getPrefixes()
Remote version of the NamespaceRegistry.getPrefixes()
method. |
String |
getURI(String prefix)
Remote version of the NamespaceRegistry.getURI(String)
method. |
String[] |
getURIs()
Remote version of the NamespaceRegistry,getURIs()
method. |
void |
registerNamespace(String prefix,
String uri)
Remote version of the NamespaceRegistry.registerNamespace(String,String)
method. |
void |
unregisterNamespace(String prefix)
Remote version of the NamespaceRegistry.unregisterNamespace(String)
method. |
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject |
---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException |
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 |
---|
public ServerNamespaceRegistry(NamespaceRegistry registry, RemoteAdapterFactory factory) throws RemoteException
registry
- local namespace registryfactory
- remote adapter factory
RemoteException
- on RMI errorsMethod Detail |
---|
public void registerNamespace(String prefix, String uri) throws RepositoryException, RemoteException
NamespaceRegistry.registerNamespace(String,String)
method.
registerNamespace
in interface RemoteNamespaceRegistry
prefix
- namespace prefixuri
- namespace uri
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void unregisterNamespace(String prefix) throws RepositoryException, RemoteException
NamespaceRegistry.unregisterNamespace(String)
method.
unregisterNamespace
in interface RemoteNamespaceRegistry
prefix
- namespace prefix
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String[] getPrefixes() throws RepositoryException, RemoteException
NamespaceRegistry.getPrefixes()
method.
getPrefixes
in interface RemoteNamespaceRegistry
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String[] getURIs() throws RepositoryException, RemoteException
NamespaceRegistry,getURIs()
method.
getURIs
in interface RemoteNamespaceRegistry
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getURI(String prefix) throws RepositoryException, RemoteException
NamespaceRegistry.getURI(String)
method.
getURI
in interface RemoteNamespaceRegistry
prefix
- namespace prefix
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic String getPrefix(String uri) throws RepositoryException, RemoteException
NamespaceRegistry.getPrefix(String)
method.
getPrefix
in interface RemoteNamespaceRegistry
uri
- namespace uri
RepositoryException
- on repository errors
RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |