1 package org
.argeo
.jackrabbit
.client
;
3 import javax
.jcr
.RepositoryException
;
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
;
12 * Wrapper for {@link RepositoryServiceImpl} in order to access the underlying
13 * {@link HttpClientContext}.
15 public class ClientDavexRepositoryService
extends RepositoryServiceImpl
{
17 public ClientDavexRepositoryService(String jcrServerURI
, BatchReadConfig batchReadConfig
)
18 throws RepositoryException
{
19 super(jcrServerURI
, batchReadConfig
);
22 public ClientDavexRepositoryService(String jcrServerURI
, String defaultWorkspaceName
,
23 BatchReadConfig batchReadConfig
, int itemInfoCacheSize
, int maximumHttpConnections
)
24 throws RepositoryException
{
25 super(jcrServerURI
, defaultWorkspaceName
, batchReadConfig
, itemInfoCacheSize
, maximumHttpConnections
);
28 public ClientDavexRepositoryService(String jcrServerURI
, String defaultWorkspaceName
,
29 BatchReadConfig batchReadConfig
, int itemInfoCacheSize
) throws RepositoryException
{
30 super(jcrServerURI
, defaultWorkspaceName
, batchReadConfig
, itemInfoCacheSize
);
34 protected HttpContext
getContext(SessionInfo sessionInfo
) throws RepositoryException
{
35 HttpClientContext result
= HttpClientContext
.create();
36 result
.setAuthCache(new NonSerialBasicAuthCache());