public class Spi2davRepositoryServiceFactory extends Object implements RepositoryServiceFactory
RepositoryServiceFactory
implementation is responsible
for creating RepositoryServiceImpl
instances which communicate via WebDAV.
All parameter keys defined in this class and in addition the ones from ConnectionOptions
are supported as arguments for createRepositoryService(Map)
.Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ID_FACTORY
Optional configuration parameter: It's value is expected to be an instance
of
IdFactory . |
static String |
PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of the
ItemInfoCache cache. |
static String |
PARAM_MAX_CONNECTIONS
Optional configuration parameter: It's value defines the
maximumConnectionsPerHost value on the HttpClient configuration and
must be an int greater than zero.
|
static String |
PARAM_NAME_FACTORY
Optional configuration parameter: It's value is expected to be an instance
of
NameFactory . |
static String |
PARAM_PATH_FACTORY
Optional configuration parameter: It's value is expected to be an instance
of
PathFactory . |
static String |
PARAM_QVALUE_FACTORY
Optional configuration parameter: It's value is expected to be an instance
of
QValueFactory . |
static String |
PARAM_REPOSITORY_URI
Mandatory configuration parameter: It's value is expected to specify the
URI of the JCR server implementation.
|
Constructor and Description |
---|
Spi2davRepositoryServiceFactory() |
Modifier and Type | Method and Description |
---|---|
RepositoryService |
createRepositoryService(Map<?,?> parameters)
Create a new
RepositoryService . |
public static final String PARAM_REPOSITORY_URI
public static final String PARAM_ID_FACTORY
IdFactory
. If missing IdFactoryImpl
is used.public static final String PARAM_NAME_FACTORY
NameFactory
. If missing NameFactoryImpl
is used.public static final String PARAM_PATH_FACTORY
PathFactory
. If missing PathFactoryImpl
is used.public static final String PARAM_QVALUE_FACTORY
QValueFactory
. If missing QValueFactoryImpl
is used.public static final String PARAM_ITEMINFO_CACHE_SIZE
ItemInfoCache
cache. Defaults to ItemInfoCacheImpl.DEFAULT_CACHE_SIZE
.public static final String PARAM_MAX_CONNECTIONS
ConnectionOptions.PARAM_MAX_CONNECTIONS
instead.public RepositoryService createRepositoryService(Map<?,?> parameters) throws RepositoryException
RepositoryServiceFactory
RepositoryService
. If the factory does not understand the
passed parameters
it must return null
.createRepositoryService
in interface RepositoryServiceFactory
parameters
- implementation specific set of parametersRepositoryService
instance or null
.RepositoryException
- If there was an error creating the
RepositoryService
instanceCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.