Package org.apache.jackrabbit.rmi.remote
Interface RemoteNamespaceRegistry
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ServerNamespaceRegistry
@Deprecated(forRemoval=true) public interface RemoteNamespaceRegistry extends Remote
Deprecated, for removal: This API element is subject to removal in a future version.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
NamespaceRegistry
interface. Used by theServerNamespaceRegistry
andClientNamespaceRegistry
adapters 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 String
getPrefix(String uri)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getPrefix(String)
method.String[]
getPrefixes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getPrefixes()
method.String
getURI(String prefix)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getURI(String)
method.String[]
getURIs()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry,getURIs()
method.void
registerNamespace(String prefix, String uri)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.registerNamespace(String,String)
method.void
unregisterNamespace(String prefix)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.unregisterNamespace(String)
method.
-
-
-
Method Detail
-
registerNamespace
void registerNamespace(String prefix, String uri) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getPrefixes()
method.- Returns:
- namespace prefixes
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getURIs
String[] getURIs() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getPrefix(String)
method.- Parameters:
uri
- namespace uri- Returns:
- namespace prefix
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
-