James Moger
2015-11-22 ed552ba47c02779c270ffd62841d6d1048dade70
commit | author | age
9ba6bc 1 /*
DO 2  * Copyright 2014 gitblit.com.
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 com.gitblit.transport.ssh;
17
18 import org.apache.sshd.common.future.CloseFuture;
19 import org.apache.sshd.common.future.SshFutureListener;
20 import org.apache.sshd.common.io.IoSession;
21 import org.apache.sshd.server.ServerFactoryManager;
d41034 22 import org.apache.sshd.server.session.ServerSessionImpl;
9ba6bc 23
DO 24 // Expose addition of close session listeners
d41034 25 class SshServerSession extends ServerSessionImpl {
9ba6bc 26
61b32f 27     SshServerSession(ServerFactoryManager server, IoSession ioSession) throws Exception {
9ba6bc 28         super(server, ioSession);
DO 29     }
30
31     void addCloseSessionListener(SshFutureListener<CloseFuture> l) {
32         closeFuture.addListener(l);
33     }
34 }