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(forRemoval=true) public class ServerNamespaceRegistry extends ServerObject implements RemoteNamespaceRegistry
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 adapter for the JCR
NamespaceRegistry
interface. This class makes a local namespace registry available as an RMI service using theRemoteNamespaceRegistry
interface.- 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, for removal: This API element is subject to removal in a future version.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 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.-
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, 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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.registerNamespace(String,String)
method.- Specified by:
registerNamespace
in 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, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.unregisterNamespace(String)
method.- Specified by:
unregisterNamespace
in interfaceRemoteNamespaceRegistry
- Parameters:
prefix
- namespace prefix- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getPrefixes
public 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.- Specified by:
getPrefixes
in interfaceRemoteNamespaceRegistry
- Returns:
- namespace prefixes
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getURIs
public 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.- Specified by:
getURIs
in interfaceRemoteNamespaceRegistry
- Returns:
- namespace uris
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getURI
public 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.- Specified by:
getURI
in 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, for removal: This API element is subject to removal in a future version.Remote version of theNamespaceRegistry.getPrefix(String)
method.- Specified by:
getPrefix
in interfaceRemoteNamespaceRegistry
- Parameters:
uri
- namespace uri- Returns:
- namespace prefix
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
-