Package org.apache.jackrabbit.rmi.server
Class ServerNamespaceRegistry
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerNamespaceRegistry
-
- All Implemented Interfaces:
Serializable,Remote,RemoteNamespaceRegistry
@Deprecated public class ServerNamespaceRegistry extends ServerObject implements RemoteNamespaceRegistry
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
NamespaceRegistryinterface. This class makes a local namespace registry available as an RMI service using theRemoteNamespaceRegistryinterface.- See Also:
NamespaceRegistry,RemoteNamespaceRegistry, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerNamespaceRegistry(NamespaceRegistry registry, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local namespace registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetPrefix(String uri)Deprecated.Remote version of theNamespaceRegistry.getPrefix(String)method.String[]getPrefixes()Deprecated.Remote version of theNamespaceRegistry.getPrefixes()method.StringgetURI(String prefix)Deprecated.Remote version of theNamespaceRegistry.getURI(String)method.String[]getURIs()Deprecated.Remote version of theNamespaceRegistry,getURIs()method.voidregisterNamespace(String prefix, String uri)Deprecated.Remote version of theNamespaceRegistry.registerNamespace(String,String)method.voidunregisterNamespace(String prefix)Deprecated.Remote version of theNamespaceRegistry.unregisterNamespace(String)method.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerNamespaceRegistry
public ServerNamespaceRegistry(NamespaceRegistry registry, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local namespace registry.- Parameters:
registry- local namespace registryfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
registerNamespace
public void registerNamespace(String prefix, String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.registerNamespace(String,String)method.- Specified by:
registerNamespacein interfaceRemoteNamespaceRegistry- Parameters:
prefix- namespace prefixuri- namespace uri- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
unregisterNamespace
public void unregisterNamespace(String prefix) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.unregisterNamespace(String)method.- Specified by:
unregisterNamespacein interfaceRemoteNamespaceRegistry- Parameters:
prefix- namespace prefix- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrefixes
public String[] getPrefixes() throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getPrefixes()method.- Specified by:
getPrefixesin interfaceRemoteNamespaceRegistry- Returns:
- namespace prefixes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getURIs
public String[] getURIs() throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry,getURIs()method.- Specified by:
getURIsin interfaceRemoteNamespaceRegistry- Returns:
- namespace uris
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getURI
public String getURI(String prefix) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getURI(String)method.- Specified by:
getURIin interfaceRemoteNamespaceRegistry- Parameters:
prefix- namespace prefix- Returns:
- namespace uri
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrefix
public String getPrefix(String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getPrefix(String)method.- Specified by:
getPrefixin interfaceRemoteNamespaceRegistry- Parameters:
uri- namespace uri- Returns:
- namespace prefix
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-