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 ThisRepositoryServiceFactoryimplementation is responsible for creatingRepositoryServiceImplinstances which communicate via DavEx. All parameter keys defined in this class and in addition the ones fromConnectionOptionsare supported as arguments forcreateRepositoryService(Map).
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_REPOSITORY_URIDefault URI for thePARAM_REPOSITORY_URIconfiguration parameter.static StringPARAM_BATCHREAD_CONFIGOptional batch read configuration parameter: If present it's value is expected to be an instance ofBatchReadConfigstatic StringPARAM_ITEMINFO_CACHE_SIZEOptional configuration parameter: It's value determines the size of theItemInfoCachecache.static StringPARAM_MAX_CONNECTIONSOptional configuration parameter: It's value defines the maximumConnectionsPerHost value on the HttpClient configuration and must be an int greater than zero.static StringPARAM_REPOSITORY_URIMandatory configuration parameter: It's value is expected to specify the URI of the JCR server implementation.static StringPARAM_WORKSPACE_NAME_DEFAULTFor 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 SummaryConstructors Constructor Description Spi2davexRepositoryServiceFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryServicecreateRepositoryService(Map<?,?> parameters)Create a newRepositoryService.
 
- 
- 
- 
Field Detail- 
PARAM_REPOSITORY_URIpublic 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_URIis 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_URIpublic static final String DEFAULT_REPOSITORY_URI Default URI for thePARAM_REPOSITORY_URIconfiguration parameter.- See Also:
- Constant Field Values
 
 - 
PARAM_BATCHREAD_CONFIGpublic 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_SIZEpublic static final String PARAM_ITEMINFO_CACHE_SIZE Optional configuration parameter: It's value determines the size of theItemInfoCachecache. Defaults toItemInfoCacheImpl.DEFAULT_CACHE_SIZE.- See Also:
- Constant Field Values
 
 - 
PARAM_MAX_CONNECTIONSpublic 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_CONNECTIONSinstead.- See Also:
- Constant Field Values
 
 - 
PARAM_WORKSPACE_NAME_DEFAULTpublic 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- 
createRepositoryServicepublic RepositoryService createRepositoryService(Map<?,?> parameters) throws RepositoryException Description copied from interface:RepositoryServiceFactoryCreate a newRepositoryService. If the factory does not understand the passedparametersit must returnnull.- Specified by:
- createRepositoryServicein interface- RepositoryServiceFactory
- Parameters:
- parameters- implementation specific set of parameters
- Returns:
- a fresh RepositoryServiceinstance ornull.
- Throws:
- RepositoryException- If there was an error creating the- RepositoryServiceinstance
 
 
- 
 
-