2 * Copyright (C) 2007-2012 Argeo GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.jackrabbit
.servlet
;
18 import javax
.jcr
.Repository
;
20 import org
.apache
.jackrabbit
.server
.SessionProvider
;
21 import org
.apache
.jackrabbit
.server
.remoting
.davex
.JcrRemotingServlet
;
23 /** Provides remote access to a JCR repository */
25 public class RemotingServlet
extends JcrRemotingServlet
{
26 public final static String INIT_PARAM_RESOURCE_PATH_PREFIX
= JcrRemotingServlet
.INIT_PARAM_RESOURCE_PATH_PREFIX
;
27 public final static String INIT_PARAM_HOME
= JcrRemotingServlet
.INIT_PARAM_HOME
;
28 public final static String INIT_PARAM_TMP_DIRECTORY
= JcrRemotingServlet
.INIT_PARAM_TMP_DIRECTORY
;
29 public final static String INIT_PARAM_PROTECTED_HANDLERS_CONFIG
= JcrRemotingServlet
.INIT_PARAM_PROTECTED_HANDLERS_CONFIG
;
31 private static final long serialVersionUID
= 3131835511468341309L;
33 private final Repository repository
;
34 private final SessionProvider sessionProvider
;
36 public RemotingServlet(Repository repository
,
37 SessionProvider sessionProvider
) {
38 this.repository
= repository
;
39 this.sessionProvider
= sessionProvider
;
43 protected Repository
getRepository() {
48 protected SessionProvider
getSessionProvider() {
49 return sessionProvider
;