1 package org.argeo.jackrabbit.client;
2
3 import javax.jcr.RepositoryException;
4
5 import org.apache.http.client.protocol.HttpClientContext;
6 import org.apache.http.protocol.HttpContext;
7 import org.apache.jackrabbit.spi.SessionInfo;
8 import org.apache.jackrabbit.spi2davex.BatchReadConfig;
9 import org.apache.jackrabbit.spi2davex.RepositoryServiceImpl;
10
11
12
13
14
15 public class ClientDavexRepositoryService extends RepositoryServiceImpl {
16
17 public ClientDavexRepositoryService(String jcrServerURI, BatchReadConfig batchReadConfig)
18 throws RepositoryException {
19 super(jcrServerURI, batchReadConfig);
20 }
21
22 public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
23 BatchReadConfig batchReadConfig, int itemInfoCacheSize, int maximumHttpConnections)
24 throws RepositoryException {
25 super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize, maximumHttpConnections);
26 }
27
28 public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
29 BatchReadConfig batchReadConfig, int itemInfoCacheSize) throws RepositoryException {
30 super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize);
31 }
32
33 @Override
34 protected HttpContext getContext(SessionInfo sessionInfo) throws RepositoryException {
35 HttpClientContext result = HttpClientContext.create();
36 result.setAuthCache(new NonSerialBasicAuthCache());
37 return result;
38 }
39
40 }