public class ServerNamespaceRegistry extends ServerObject implements RemoteNamespaceRegistry
NamespaceRegistry
interface.
This class makes a local namespace registry available as an RMI service
using the
RemoteNamespaceRegistry
interface.NamespaceRegistry
,
RemoteNamespaceRegistry
,
Serialized Formref
Constructor and Description |
---|
ServerNamespaceRegistry(NamespaceRegistry registry,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local namespace registry.
|
Modifier and Type | Method and Description |
---|---|
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. |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerNamespaceRegistry(NamespaceRegistry registry, RemoteAdapterFactory factory) throws RemoteException
registry
- local namespace registryfactory
- remote adapter factoryRemoteException
- on RMI errorspublic void registerNamespace(String prefix, String uri) throws RepositoryException, RemoteException
NamespaceRegistry.registerNamespace(String,String)
method.registerNamespace
in interface RemoteNamespaceRegistry
prefix
- namespace prefixuri
- namespace uriRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic void unregisterNamespace(String prefix) throws RepositoryException, RemoteException
NamespaceRegistry.unregisterNamespace(String)
method.unregisterNamespace
in interface RemoteNamespaceRegistry
prefix
- namespace prefixRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getPrefixes() throws RepositoryException, RemoteException
NamespaceRegistry.getPrefixes()
method.getPrefixes
in interface RemoteNamespaceRegistry
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String[] getURIs() throws RepositoryException, RemoteException
NamespaceRegistry,getURIs()
method.getURIs
in interface RemoteNamespaceRegistry
RepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getURI(String prefix) throws RepositoryException, RemoteException
NamespaceRegistry.getURI(String)
method.getURI
in interface RemoteNamespaceRegistry
prefix
- namespace prefixRepositoryException
- on repository errorsRemoteException
- on RMI errorspublic String getPrefix(String uri) throws RepositoryException, RemoteException
NamespaceRegistry.getPrefix(String)
method.getPrefix
in interface RemoteNamespaceRegistry
uri
- namespace uriRepositoryException
- on repository errorsRemoteException
- on RMI errorsCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.