Package org.apache.jackrabbit.spi2dav
Class Spi2davRepositoryServiceFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.Spi2davRepositoryServiceFactory
-
- All Implemented Interfaces:
RepositoryServiceFactory
public class Spi2davRepositoryServiceFactory extends Object implements RepositoryServiceFactory
ThisRepositoryServiceFactory
implementation is responsible for creatingRepositoryServiceImpl
instances which communicate via WebDAV. 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
PARAM_ID_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofIdFactory
.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_NAME_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofNameFactory
.static String
PARAM_PATH_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofPathFactory
.static String
PARAM_QVALUE_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofQValueFactory
.static String
PARAM_REPOSITORY_URI
Mandatory configuration parameter: It's value is expected to specify the URI of the JCR server implementation.
-
Constructor Summary
Constructors Constructor Description Spi2davRepositoryServiceFactory()
-
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.- See Also:
- Constant Field Values
-
PARAM_ID_FACTORY
public static final String PARAM_ID_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofIdFactory
. If missingIdFactoryImpl
is used.- See Also:
- Constant Field Values
-
PARAM_NAME_FACTORY
public static final String PARAM_NAME_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofNameFactory
. If missingNameFactoryImpl
is used.- See Also:
- Constant Field Values
-
PARAM_PATH_FACTORY
public static final String PARAM_PATH_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofPathFactory
. If missingPathFactoryImpl
is used.- See Also:
- Constant Field Values
-
PARAM_QVALUE_FACTORY
public static final String PARAM_QVALUE_FACTORY
Optional configuration parameter: It's value is expected to be an instance ofQValueFactory
. If missingQValueFactoryImpl
is used.- 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
-
-
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
-
-