public class AgentForwardingChannel extends Channel implements Closeable
Channel.DataBlock, Channel.QueuedData
Modifier and Type | Field and Description |
---|---|
static String |
SSH_AGENT_CLIENT |
connection, localwindow, localWindowLock
Constructor and Description |
---|
AgentForwardingChannel(String type,
SessionChannel session) |
AgentForwardingChannel(String type,
SessionChannel session,
ChannelEventListener listener) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
createChannel()
Called when the channel is being created.
|
protected void |
evaluateWindowSpace(int remaining)
Called to evaluate the window space available.
|
boolean |
isActive() |
protected void |
onAgentConnected(Connection con,
Object agent) |
protected void |
onChannelClosed()
Called when the channel has been closed to enable resources to be freed.
|
protected void |
onChannelClosing()
Called before the channel is closed
|
protected void |
onChannelData(byte[] data)
Called by the channel when data arrives from the remote side.
|
protected void |
onChannelFree()
This method is called when the channel has been closed and all its
resources are no longer required.
|
protected void |
onChannelOpen()
Called when the channel has been opened - this method is only called when
the remote side requests a channel open.
|
protected void |
onChannelOpenConfirmation()
Called when the channel has been confirmed as open by the remote side -
this method is only called when the channel has been requested by this
side of the connection
|
protected void |
onChannelRequest(String type,
boolean wantreply,
byte[] requestdata)
Called when a channel request is received.
|
protected void |
onExtendedData(byte[] data,
int type)
Called by the channel when extended data arrives
|
protected void |
onLocalEOF()
Called when the local side is EOF.
|
protected void |
onRemoteEOF()
Called when the remote side reports its OutputStream as EOF.
|
protected byte[] |
openChannel(byte[] requestdata)
Called when the channel is being opened.
|
addEventListener, addInputListener, addOutputListener, canClose, clearIdleState, close, close, consumeWindowSpace, createCloseTask, executeTask, getChannelType, getConnection, getContext, getLocalId, getLocalPacket, getLocalWindow, getQueueSize, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, isClosed, isClosing, isEOF, isOpen, isSelfManagedWindowSpace, markEOF, onChannelOpenFailure, onRemoteClose, onWindowAdjust, queueSize, registerExtendedData, resetIdleState, sendChannelData, sendChannelData, sendChannelData, sendChannelData, sendChannelDataAndBlock, sendChannelRequest, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust
public static final String SSH_AGENT_CLIENT
public AgentForwardingChannel(String type, SessionChannel session) throws IOException
IOException
public AgentForwardingChannel(String type, SessionChannel session, ChannelEventListener listener) throws IOException
IOException
protected void onChannelData(byte[] data)
Channel
onChannelData
in class Channel
protected void onExtendedData(byte[] data, int type)
Channel
onExtendedData
in class Channel
protected void onChannelFree()
Channel
onChannelFree
in class Channel
protected byte[] createChannel() throws IOException
Channel
createChannel
in class Channel
IOException
protected byte[] openChannel(byte[] requestdata) throws WriteOperationRequest, ChannelOpenException
Channel
openChannel
in class Channel
WriteOperationRequest
ChannelOpenException
public boolean isActive()
protected void onChannelOpenConfirmation()
Channel
onChannelOpenConfirmation
in class Channel
protected void onAgentConnected(Connection con, Object agent)
protected void onChannelClosed()
Channel
onChannelClosed
in class Channel
protected void onChannelOpen()
Channel
onChannelOpen
in class Channel
protected void onChannelClosing()
Channel
onChannelClosing
in class Channel
protected void onChannelRequest(String type, boolean wantreply, byte[] requestdata)
Channel
onChannelRequest
in class Channel
protected void evaluateWindowSpace(int remaining)
Channel
evaluateWindowSpace
in class Channel
protected void onRemoteEOF()
Channel
onRemoteEOF
in class Channel
protected void onLocalEOF()
Channel
onLocalEOF
in class Channel
Copyright © 2024. All rights reserved.