Package org.apache.jackrabbit.spi2davex
Class Spi2davexRepositoryServiceFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi2davex.Spi2davexRepositoryServiceFactory
-
- All Implemented Interfaces:
RepositoryServiceFactory
public class Spi2davexRepositoryServiceFactory extends Object implements RepositoryServiceFactory
ThisRepositoryServiceFactory
implementation is responsible for creatingRepositoryServiceImpl
instances which communicate via DavEx. All parameter keys defined in this class and in addition the ones fromConnectionOptions
are supported as arguments forcreateRepositoryService(Map)
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_REPOSITORY_URI
Default URI for thePARAM_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 ofBatchReadConfig
static String
PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of theItemInfoCache
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 eachRepository.login()
call)
-
Constructor Summary
Constructors Constructor Description Spi2davexRepositoryServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryService
createRepositoryService(Map<?,?> parameters)
Create a newRepositoryService
.
-
-
-
Field Detail
-
PARAM_REPOSITORY_URI
public static final String PARAM_REPOSITORY_URI
Mandatory configuration parameter: It's value is expected to specify the URI of the JCR server implementation.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.- See Also:
- Constant Field Values
-
DEFAULT_REPOSITORY_URI
public static final String DEFAULT_REPOSITORY_URI
Default URI for thePARAM_REPOSITORY_URI
configuration parameter.- See Also:
- Constant Field Values
-
PARAM_BATCHREAD_CONFIG
public static final String PARAM_BATCHREAD_CONFIG
Optional batch read configuration parameter: If present it's value is expected to be an instance ofBatchReadConfig
- See Also:
- Constant Field Values
-
PARAM_ITEMINFO_CACHE_SIZE
public static final String PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of theItemInfoCache
cache. Defaults toItemInfoCacheImpl.DEFAULT_CACHE_SIZE
.- See Also:
- Constant Field Values
-
PARAM_MAX_CONNECTIONS
public static final 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. Rather useConnectionOptions.PARAM_MAX_CONNECTIONS
instead.- See Also:
- Constant Field Values
-
PARAM_WORKSPACE_NAME_DEFAULT
public static final 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 eachRepository.login()
call)- See Also:
- JCR-4120, JCR-1842, Constant Field Values
-
-
Method Detail
-
createRepositoryService
public RepositoryService createRepositoryService(Map<?,?> parameters) throws RepositoryException
Description copied from interface:RepositoryServiceFactory
Create a newRepositoryService
. If the factory does not understand the passedparameters
it must returnnull
.- Specified by:
createRepositoryService
in interfaceRepositoryServiceFactory
- Parameters:
parameters
- implementation specific set of parameters- Returns:
- a fresh
RepositoryService
instance ornull
. - Throws:
RepositoryException
- If there was an error creating theRepositoryService
instance
-
-