James Moger
2015-11-22 ed552ba47c02779c270ffd62841d6d1048dade70
commit | author | age
56b3f3 1 /*
JM 2  * Copyright 2014 gitblit.com.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * 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, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  */
924c9b 16 package com.gitblit.transport.ssh;
JM 17
18 import java.io.IOException;
d41034 19 import java.nio.file.FileSystem;
924c9b 20
9ba6bc 21 import org.apache.sshd.common.file.FileSystemFactory;
d41034 22 import org.apache.sshd.common.session.Session;
924c9b 23
JM 24 public class DisabledFilesystemFactory implements FileSystemFactory {
25
d41034 26      /**
JM 27      * Create user specific file system.
28      *
29      * @param session The session created for the user
30      * @return The current {@link FileSystem} for the provided session
31      * @throws java.io.IOException when the filesystem can not be created
32      */
33     @Override
34     public FileSystem createFileSystem(Session session) throws IOException {
35         return null;
36     }
924c9b 37 }