Package org.apache.jackrabbit.rmi.remote
Interface RemoteNamespaceRegistry
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ServerNamespaceRegistry
@Deprecated public interface RemoteNamespaceRegistry extends Remote
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
NamespaceRegistryinterface. Used by theServerNamespaceRegistryandClientNamespaceRegistryadapters to provide transparent RMI access to remote namespace registries.The methods in this interface are documented only with a reference to a corresponding NamespaceRegistry method. The remote object will simply forward the method call to the underlying NamespaceRegistry instance. Argument and return values, as well as possible exceptions, are copied over the network. RMI errors are signaled with RemoteExceptions.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
registerNamespace
void registerNamespace(String prefix, String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.registerNamespace(String,String)method.- Parameters:
prefix- namespace prefixuri- namespace uri- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
unregisterNamespace
void unregisterNamespace(String prefix) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.unregisterNamespace(String)method.- Parameters:
prefix- namespace prefix- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrefixes
String[] getPrefixes() throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getPrefixes()method.- Returns:
- namespace prefixes
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getURIs
String[] getURIs() throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry,getURIs()method.- Returns:
- namespace uris
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getURI
String getURI(String prefix) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getURI(String)method.- Parameters:
prefix- namespace prefix- Returns:
- namespace uri
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getPrefix
String getPrefix(String uri) throws RepositoryException, RemoteException
Deprecated.Remote version of theNamespaceRegistry.getPrefix(String)method.- Parameters:
uri- namespace uri- Returns:
- namespace prefix
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-