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, sendWindowAdjustpublic static final String SSH_AGENT_CLIENT
public AgentForwardingChannel(String type, SessionChannel session) throws IOException
IOExceptionpublic AgentForwardingChannel(String type, SessionChannel session, ChannelEventListener listener) throws IOException
IOExceptionprotected void onChannelData(byte[] data)
ChannelonChannelData in class Channelprotected void onExtendedData(byte[] data,
int type)
ChannelonExtendedData in class Channelprotected void onChannelFree()
ChannelonChannelFree in class Channelprotected byte[] createChannel()
throws IOException
ChannelcreateChannel in class ChannelIOExceptionprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
ChannelOpenException
ChannelopenChannel in class ChannelWriteOperationRequestChannelOpenExceptionpublic boolean isActive()
protected void onChannelOpenConfirmation()
ChannelonChannelOpenConfirmation in class Channelprotected void onAgentConnected(Connection con, Object agent)
protected void onChannelClosed()
ChannelonChannelClosed in class Channelprotected void onChannelOpen()
ChannelonChannelOpen in class Channelprotected void onChannelClosing()
ChannelonChannelClosing in class Channelprotected void onChannelRequest(String type, boolean wantreply, byte[] requestdata)
ChannelonChannelRequest in class Channelprotected void evaluateWindowSpace(int remaining)
ChannelevaluateWindowSpace in class Channelprotected void onRemoteEOF()
ChannelonRemoteEOF in class Channelprotected void onLocalEOF()
ChannelonLocalEOF in class ChannelCopyright © 2025. All rights reserved.