org.apache.jackrabbit.rmi.remote
Interface RemoteNamespaceRegistry

All Superinterfaces:
Remote
All Known Implementing Classes:
ServerNamespaceRegistry

public interface RemoteNamespaceRegistry
extends Remote

Remote version of the JCR NamespaceRegistry interface. Used by the ServerNamespaceRegistry and ClientNamespaceRegistry 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.

See Also:
NamespaceRegistry, ClientNamespaceRegistry, ServerNamespaceRegistry

Method Summary
 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.
 

Method Detail

registerNamespace

void registerNamespace(String prefix,
                       String uri)
                       throws RepositoryException,
                              RemoteException
Remote version of the NamespaceRegistry.registerNamespace(String,String) method.

Parameters:
prefix - namespace prefix
uri - namespace uri
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

unregisterNamespace

void unregisterNamespace(String prefix)
                         throws RepositoryException,
                                RemoteException
Remote version of the NamespaceRegistry.unregisterNamespace(String) method.

Parameters:
prefix - namespace prefix
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getPrefixes

String[] getPrefixes()
                     throws RepositoryException,
                            RemoteException
Remote version of the NamespaceRegistry.getPrefixes() method.

Returns:
namespace prefixes
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getURIs

String[] getURIs()
                 throws RepositoryException,
                        RemoteException
Remote version of the NamespaceRegistry,getURIs() method.

Returns:
namespace uris
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getURI

String getURI(String prefix)
              throws RepositoryException,
                     RemoteException
Remote version of the NamespaceRegistry.getURI(String) method.

Parameters:
prefix - namespace prefix
Returns:
namespace uri
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getPrefix

String getPrefix(String uri)
                 throws RepositoryException,
                        RemoteException
Remote version of the NamespaceRegistry.getPrefix(String) method.

Parameters:
uri - namespace uri
Returns:
namespace prefix
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.