org.apache.sshd.server.channel
Class ChannelSession
java.lang.Object
org.apache.sshd.common.channel.AbstractChannel
org.apache.sshd.server.channel.AbstractServerChannel
org.apache.sshd.server.channel.ChannelSession
- All Implemented Interfaces:
- Channel
public class ChannelSession
- extends AbstractServerChannel
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
Fields inherited from class org.apache.sshd.common.channel.AbstractChannel |
closeFuture, closing, DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, id, localWindow, lock, log, recipient, remoteWindow, session |
Methods inherited from class org.apache.sshd.common.channel.AbstractChannel |
configureWindow, doClose, getId, getLocalWindow, getRecipient, getSession, handleClose, handleData, handleExtendedData, handleFailure, handleWindowAdjust, init, sendEof, sendWindowAdjust |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected String type
in
protected InputStream in
out
protected OutputStream out
err
protected OutputStream err
command
protected Command command
shellIn
protected OutputStream shellIn
env
protected ChannelSession.StandardEnvironment env
ChannelSession
public ChannelSession()
close
public CloseFuture close(boolean immediately)
- Specified by:
close
in interface Channel
- Overrides:
close
in class AbstractChannel
handleEof
public void handleEof()
throws IOException
- Specified by:
handleEof
in interface Channel
- Overrides:
handleEof
in class AbstractChannel
- Throws:
IOException
handleRequest
public void handleRequest(Buffer buffer)
throws IOException
- Specified by:
handleRequest
in interface Channel
- Overrides:
handleRequest
in class AbstractChannel
- Throws:
IOException
doWriteData
protected void doWriteData(byte[] data,
int off,
int len)
throws IOException
- Specified by:
doWriteData
in class AbstractChannel
- Throws:
IOException
doWriteExtendedData
protected void doWriteExtendedData(byte[] data,
int off,
int len)
throws IOException
- Specified by:
doWriteExtendedData
in class AbstractChannel
- Throws:
IOException
handleRequest
protected boolean handleRequest(String type,
Buffer buffer)
throws IOException
- Throws:
IOException
handleEnv
protected boolean handleEnv(Buffer buffer)
throws IOException
- Throws:
IOException
handlePtyReq
protected boolean handlePtyReq(Buffer buffer)
throws IOException
- Throws:
IOException
handleWindowChange
protected boolean handleWindowChange(Buffer buffer)
throws IOException
- Throws:
IOException
handleSignal
protected boolean handleSignal(Buffer buffer)
throws IOException
- Throws:
IOException
handleShell
protected boolean handleShell(Buffer buffer)
throws IOException
- Throws:
IOException
handleExec
protected boolean handleExec(Buffer buffer)
throws IOException
- Throws:
IOException
handleSubsystem
protected boolean handleSubsystem(Buffer buffer)
throws IOException
- Throws:
IOException
prepareCommand
protected void prepareCommand()
throws IOException
- Throws:
IOException
getPtyModeValue
protected int getPtyModeValue(PtyMode mode)
handleAgentForwarding
protected boolean handleAgentForwarding(Buffer buffer)
throws IOException
- Throws:
IOException
handleX11Forwarding
protected boolean handleX11Forwarding(Buffer buffer)
throws IOException
- Throws:
IOException
addEnvVariable
protected void addEnvVariable(String name,
String value)
getEnvironment
protected ChannelSession.StandardEnvironment getEnvironment()
closeShell
protected void closeShell(int exitValue)
throws IOException
- Throws:
IOException
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.