public class ChannelSession extends AbstractServerChannel
Modifier and Type | Class and Description |
---|---|
static class |
ChannelSession.Factory |
protected static class |
ChannelSession.StandardEnvironment |
Modifier and Type | Field and Description |
---|---|
protected Command |
command |
protected ChannelSession.StandardEnvironment |
env |
protected OutputStream |
err |
protected InputStream |
in |
protected OutputStream |
out |
protected OutputStream |
shellIn |
protected String |
type |
exitStatusSent
closeFuture, closing, DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, id, localWindow, lock, log, recipient, remoteWindow, session
Constructor and Description |
---|
ChannelSession() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEnvVariable(String name,
String value) |
CloseFuture |
close(boolean immediately) |
protected void |
closeShell(int exitValue) |
protected void |
doWriteData(byte[] data,
int off,
int len) |
protected void |
doWriteExtendedData(byte[] data,
int off,
int len) |
protected ChannelSession.StandardEnvironment |
getEnvironment() |
protected int |
getPtyModeValue(PtyMode mode) |
protected boolean |
handleAgentForwarding(Buffer buffer) |
protected boolean |
handleEnv(Buffer buffer) |
void |
handleEof() |
protected boolean |
handleExec(Buffer buffer) |
protected boolean |
handlePtyReq(Buffer buffer) |
void |
handleRequest(Buffer buffer) |
protected boolean |
handleRequest(String type,
Buffer buffer) |
protected boolean |
handleShell(Buffer buffer) |
protected boolean |
handleSignal(Buffer buffer) |
protected boolean |
handleSubsystem(Buffer buffer) |
protected boolean |
handleWindowChange(Buffer buffer) |
protected boolean |
handleX11Forwarding(Buffer buffer) |
protected void |
prepareCommand() |
doInit, handleOpenFailure, handleOpenSuccess, open, sendExitStatus
configureWindow, doClose, getId, getLocalWindow, getRecipient, getSession, handleClose, handleData, handleExtendedData, handleFailure, handleWindowAdjust, init, sendEof, sendWindowAdjust
protected String type
protected InputStream in
protected OutputStream out
protected OutputStream err
protected Command command
protected OutputStream shellIn
protected ChannelSession.StandardEnvironment env
public CloseFuture close(boolean immediately)
close
in interface Channel
close
in class AbstractChannel
public void handleEof() throws IOException
handleEof
in interface Channel
handleEof
in class AbstractChannel
IOException
public void handleRequest(Buffer buffer) throws IOException
handleRequest
in interface Channel
handleRequest
in class AbstractChannel
IOException
protected void doWriteData(byte[] data, int off, int len) throws IOException
doWriteData
in class AbstractChannel
IOException
protected void doWriteExtendedData(byte[] data, int off, int len) throws IOException
doWriteExtendedData
in class AbstractChannel
IOException
protected boolean handleRequest(String type, Buffer buffer) throws IOException
IOException
protected boolean handleEnv(Buffer buffer) throws IOException
IOException
protected boolean handlePtyReq(Buffer buffer) throws IOException
IOException
protected boolean handleWindowChange(Buffer buffer) throws IOException
IOException
protected boolean handleSignal(Buffer buffer) throws IOException
IOException
protected boolean handleShell(Buffer buffer) throws IOException
IOException
protected boolean handleExec(Buffer buffer) throws IOException
IOException
protected boolean handleSubsystem(Buffer buffer) throws IOException
IOException
protected void prepareCommand() throws IOException
IOException
protected int getPtyModeValue(PtyMode mode)
protected boolean handleAgentForwarding(Buffer buffer) throws IOException
IOException
protected boolean handleX11Forwarding(Buffer buffer) throws IOException
IOException
protected ChannelSession.StandardEnvironment getEnvironment()
protected void closeShell(int exitValue) throws IOException
IOException
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.