org.apache.ace.repository.ext.impl
Class RemoteRepository
java.lang.Object
org.apache.ace.repository.ext.impl.RemoteRepository
- All Implemented Interfaces:
- org.apache.ace.repository.Repository
public class RemoteRepository
- extends Object
- implements org.apache.ace.repository.Repository
This class works as a local interface for a remote repository by handling the network
communication.
Constructor Summary |
RemoteRepository(URL url,
String filter)
Creates a remote repository that connects to a given location with a given filter. |
RemoteRepository(URL url,
String customer,
String name)
Creates a remote repository that connects to a given location with a given customer-
and repository name. |
RemoteRepository
public RemoteRepository(URL url,
String customer,
String name)
- Creates a remote repository that connects to a given location with a given customer-
and repository name.
- Parameters:
url
- The location of the repository.customer
- The customer name to use.name
- The repository name to use.
RemoteRepository
public RemoteRepository(URL url,
String filter)
- Creates a remote repository that connects to a given location with a given filter.
- Parameters:
url
- The location of the repository.filter
- An LDAP filter string to select the repository.
checkout
public InputStream checkout(long version)
throws IOException,
IllegalArgumentException
- Specified by:
checkout
in interface org.apache.ace.repository.Repository
- Throws:
IOException
IllegalArgumentException
commit
public boolean commit(InputStream data,
long fromVersion)
throws IOException,
IllegalArgumentException
- Specified by:
commit
in interface org.apache.ace.repository.Repository
- Throws:
IOException
IllegalArgumentException
getRange
public org.apache.ace.range.SortedRangeSet getRange()
throws IOException
- Specified by:
getRange
in interface org.apache.ace.repository.Repository
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.