org.apache.sshd.common.channel
Class AbstractChannel
java.lang.Object
org.apache.sshd.common.channel.AbstractChannel
- All Implemented Interfaces:
- Channel
- Direct Known Subclasses:
- AbstractClientChannel, AbstractServerChannel
public abstract class AbstractChannel
- extends java.lang.Object
- implements Channel
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_WINDOW_SIZE
public static final int DEFAULT_WINDOW_SIZE
- See Also:
- Constant Field Values
DEFAULT_PACKET_SIZE
public static final int DEFAULT_PACKET_SIZE
- See Also:
- Constant Field Values
log
protected final org.slf4j.Logger log
lock
protected final java.lang.Object lock
localWindow
protected final Window localWindow
remoteWindow
protected final Window remoteWindow
session
protected Session session
id
protected int id
recipient
protected int recipient
eof
protected boolean eof
closeFuture
protected final CloseFuture closeFuture
closing
protected boolean closing
AbstractChannel
public AbstractChannel()
getId
public int getId()
- Specified by:
getId in interface Channel
getRecipient
public int getRecipient()
getLocalWindow
public Window getLocalWindow()
- Specified by:
getLocalWindow in interface Channel
getSession
public Session getSession()
- Specified by:
getSession in interface Channel
handleRequest
public void handleRequest(Buffer buffer)
throws java.io.IOException
- Specified by:
handleRequest in interface Channel
- Throws:
java.io.IOException
init
public void init(Session session,
int id)
- Specified by:
init in interface Channel
close
public CloseFuture close(boolean immediately)
- Specified by:
close in interface Channel
handleClose
public void handleClose()
throws java.io.IOException
- Specified by:
handleClose in interface Channel
- Throws:
java.io.IOException
doClose
protected void doClose()
handleData
public void handleData(Buffer buffer)
throws java.io.IOException
- Specified by:
handleData in interface Channel
- Throws:
java.io.IOException
handleExtendedData
public void handleExtendedData(Buffer buffer)
throws java.io.IOException
- Specified by:
handleExtendedData in interface Channel
- Throws:
java.io.IOException
handleEof
public void handleEof()
throws java.io.IOException
- Specified by:
handleEof in interface Channel
- Throws:
java.io.IOException
handleWindowAdjust
public void handleWindowAdjust(Buffer buffer)
throws java.io.IOException
- Specified by:
handleWindowAdjust in interface Channel
- Throws:
java.io.IOException
handleFailure
public void handleFailure()
throws java.io.IOException
- Specified by:
handleFailure in interface Channel
- Throws:
java.io.IOException
doWriteData
protected abstract void doWriteData(byte[] data,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
doWriteExtendedData
protected abstract void doWriteExtendedData(byte[] data,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
sendEof
protected void sendEof()
throws java.io.IOException
- Throws:
java.io.IOException
configureWindow
protected void configureWindow()
sendWindowAdjust
protected void sendWindowAdjust(int len)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.