Package org.apache.jackrabbit.rmi.client
Class ClientNamespaceRegistry
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientNamespaceRegistry
-
- All Implemented Interfaces:
NamespaceRegistry
@Deprecated public class ClientNamespaceRegistry extends ClientObject implements NamespaceRegistry
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteNamespaceRegistryinterface. This class makes a remote namespace registry locally available using the JCRNamespaceRegistryinterface.- See Also:
NamespaceRegistry,RemoteNamespaceRegistry
-
-
Field Summary
-
Fields inherited from interface javax.jcr.NamespaceRegistry
NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML
-
-
Constructor Summary
Constructors Constructor Description ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote namespace registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetPrefix(String uri)Deprecated.String[]getPrefixes()Deprecated.StringgetURI(String prefix)Deprecated.String[]getURIs()Deprecated.voidregisterNamespace(String prefix, String uri)Deprecated.voidunregisterNamespace(String prefix)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Constructor Detail
-
ClientNamespaceRegistry
public ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote namespace registry.- Parameters:
remote- remote namespace registryfactory- local adapter factory
-
-
Method Detail
-
registerNamespace
public void registerNamespace(String prefix, String uri) throws RepositoryException
Deprecated.- Specified by:
registerNamespacein interfaceNamespaceRegistry- Throws:
RepositoryException
-
unregisterNamespace
public void unregisterNamespace(String prefix) throws RepositoryException
Deprecated.- Specified by:
unregisterNamespacein interfaceNamespaceRegistry- Throws:
RepositoryException
-
getPrefixes
public String[] getPrefixes() throws RepositoryException
Deprecated.- Specified by:
getPrefixesin interfaceNamespaceRegistry- Throws:
RepositoryException
-
getURIs
public String[] getURIs() throws RepositoryException
Deprecated.- Specified by:
getURIsin interfaceNamespaceRegistry- Throws:
RepositoryException
-
getURI
public String getURI(String prefix) throws RepositoryException
Deprecated.- Specified by:
getURIin interfaceNamespaceRegistry- Throws:
RepositoryException
-
getPrefix
public String getPrefix(String uri) throws RepositoryException
Deprecated.- Specified by:
getPrefixin interfaceNamespaceRegistry- Throws:
RepositoryException
-
-