org.apache.jackrabbit.rmi.repository
Class URLRemoteRepositoryFactory

java.lang.Object
  extended by org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
      extended by org.apache.jackrabbit.rmi.repository.URLRemoteRepositoryFactory

public class URLRemoteRepositoryFactory
extends AbstractRemoteRepositoryFactory

Factory that looks up a remote repository from a given URL.

Since:
1.4

Constructor Summary
URLRemoteRepositoryFactory(LocalAdapterFactory factory, URL url)
          Creates a factory for looking up a remote repository from a URL.
 
Method Summary
protected  RemoteRepository getRemoteRepository()
          Looks up and returns a remote repository from the configured URL.
 
Methods inherited from class org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
getRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLRemoteRepositoryFactory

public URLRemoteRepositoryFactory(LocalAdapterFactory factory,
                                  URL url)
Creates a factory for looking up a remote repository from a URL.

Parameters:
factory - local adapter factory
url - URL or the remote repository
Method Detail

getRemoteRepository

protected RemoteRepository getRemoteRepository()
                                        throws RepositoryException
Looks up and returns a remote repository from the configured URL.

Specified by:
getRemoteRepository in class AbstractRemoteRepositoryFactory
Returns:
remote repository reference
Throws:
RepositoryException - if the remote repository is not available


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