]> git.argeo.org Git - lgpl/argeo-commons.git/blob - servlet/RemotingServlet.java
Prepare next development cycle
[lgpl/argeo-commons.git] / 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
29 private static final long serialVersionUID = 3131835511468341309L;
30
31 private final Repository repository;
32 private final SessionProvider sessionProvider;
33
34 public RemotingServlet(Repository repository,
35 SessionProvider sessionProvider) {
36 this.repository = repository;
37 this.sessionProvider = sessionProvider;
38 }
39
40 @Override
41 protected Repository getRepository() {
42 return repository;
43 }
44
45 @Override
46 protected SessionProvider getSessionProvider() {
47 return sessionProvider;
48 }
49
50 }