]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.server.jcr/src/org/argeo/jackrabbit/servlet/RemotingServlet.java
LDAP user admin
[lgpl/argeo-commons.git] / org.argeo.server.jcr / src / org / argeo / jackrabbit / servlet / RemotingServlet.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16 package org.argeo.jackrabbit.servlet;
17
18 import javax.jcr.Repository;
19
20 import org.apache.jackrabbit.server.SessionProvider;
21 import org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet;
22
23 /** Provides remote access to a JCR repository */
24 public class RemotingServlet extends JcrRemotingServlet {
25 public final static String INIT_PARAM_RESOURCE_PATH_PREFIX = JcrRemotingServlet.INIT_PARAM_RESOURCE_PATH_PREFIX;
26 public final static String INIT_PARAM_HOME = JcrRemotingServlet.INIT_PARAM_HOME;
27 public final static String INIT_PARAM_TMP_DIRECTORY = JcrRemotingServlet.INIT_PARAM_TMP_DIRECTORY;
28 public final static String INIT_PARAM_PROTECTED_HANDLERS_CONFIG = JcrRemotingServlet.INIT_PARAM_PROTECTED_HANDLERS_CONFIG;
29
30 private static final long serialVersionUID = 3131835511468341309L;
31
32 private final Repository repository;
33 private final SessionProvider sessionProvider;
34
35 public RemotingServlet(Repository repository,
36 SessionProvider sessionProvider) {
37 this.repository = repository;
38 this.sessionProvider = sessionProvider;
39 }
40
41 @Override
42 protected Repository getRepository() {
43 return repository;
44 }
45
46 @Override
47 protected SessionProvider getSessionProvider() {
48 return sessionProvider;
49 }
50
51 }