org.apache.sshd.server.channel
Class AbstractServerChannel
java.lang.Object
org.apache.sshd.common.channel.AbstractChannel
org.apache.sshd.server.channel.AbstractServerChannel
- All Implemented Interfaces:
- Channel
- Direct Known Subclasses:
- ChannelAgentForwarding, ChannelDirectTcpip, ChannelSession
public abstract class AbstractServerChannel
- extends AbstractChannel
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 |
Method Summary |
protected OpenFuture |
doInit(Buffer buffer)
|
void |
handleOpenFailure(Buffer buffer)
For a client channel, this method will be called internally by the session when
the server has rejected this channel opening. |
void |
handleOpenSuccess(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
For a client channel, this method will be called internally by the session when the confirmation
has been received. |
OpenFuture |
open(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
For a server channel, this method will actually open the channel |
protected void |
sendExitStatus(int v)
|
Methods inherited from class org.apache.sshd.common.channel.AbstractChannel |
close, configureWindow, doClose, doWriteData, doWriteExtendedData, getId, getLocalWindow, getRecipient, getSession, handleClose, handleData, handleEof, handleExtendedData, handleFailure, handleRequest, handleWindowAdjust, init, sendEof, sendWindowAdjust |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exitStatusSent
protected boolean exitStatusSent
AbstractServerChannel
public AbstractServerChannel()
open
public OpenFuture open(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
- Description copied from interface:
Channel
- For a server channel, this method will actually open the channel
handleOpenSuccess
public void handleOpenSuccess(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
throws IOException
- Description copied from interface:
Channel
- For a client channel, this method will be called internally by the session when the confirmation
has been received.
- Throws:
IOException
handleOpenFailure
public void handleOpenFailure(Buffer buffer)
- Description copied from interface:
Channel
- For a client channel, this method will be called internally by the session when
the server has rejected this channel opening.
doInit
protected OpenFuture doInit(Buffer buffer)
sendExitStatus
protected void sendExitStatus(int v)
throws IOException
- Throws:
IOException
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.