public class Spi2davexRepositoryServiceFactory extends Object implements RepositoryServiceFactory
RepositoryServiceFactory
implementation is responsible
for creating RepositoryServiceImpl
instances.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REPOSITORY_URI
Default URI for the
PARAM_REPOSITORY_URI configuration
parameter. |
static String |
PARAM_BATCHREAD_CONFIG
Optional batch read configuration parameter: If present it's value is
expected to be an instance of
BatchReadConfig |
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_REPOSITORY_URI
Mandatory configuration parameter: It's value is expected to specify the
URI of the JCR server implementation.
|
static String |
PARAM_WORKSPACE_NAME_DEFAULT
For connecting to JCR servers older than version 1.5, the default workspace needs to be passed
(if not explicitly given in each
Repository.login() call) |
Constructor and Description |
---|
Spi2davexRepositoryServiceFactory() |
Modifier and Type | Method and Description |
---|---|
RepositoryService |
createRepositoryService(Map<?,?> parameters)
Create a new
RepositoryService . |
public static final String PARAM_REPOSITORY_URI
DEFAULT_REPOSITORY_URI
is used as
fallback if no parameters or uri has been specified and the uri could not
been retrieved from system props either.public static final String DEFAULT_REPOSITORY_URI
PARAM_REPOSITORY_URI
configuration
parameter.public static final String PARAM_BATCHREAD_CONFIG
BatchReadConfig
public static final String PARAM_ITEMINFO_CACHE_SIZE
ItemInfoCache
cache. Defaults to ItemInfoCacheImpl.DEFAULT_CACHE_SIZE
.public static final String PARAM_MAX_CONNECTIONS
public static final String PARAM_WORKSPACE_NAME_DEFAULT
Repository.login()
call)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–2021 The Apache Software Foundation. All rights reserved.