public abstract class

AbstractForwardedChannel

extends AbstractChannel
implements Channel.Forwarded
java.lang.Object
   ↳ net.schmizz.sshj.connection.channel.AbstractChannel
     ↳ net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannel
Known Direct Subclasses

Class Overview

Base class for forwarded channels whose open is initiated by the server.

Summary

[Expand]
Inherited Constants
From class net.schmizz.sshj.connection.channel.AbstractChannel
Fields
protected final String origIP
protected final int origPort
[Expand]
Inherited Fields
From class net.schmizz.sshj.connection.channel.AbstractChannel
Protected Constructors
AbstractForwardedChannel(Connection conn, String type, int recipient, long remoteWinSize, long remoteMaxPacketSize, String origIP, int origPort)
Public Methods
void confirm()
Confirm CHANNEL_OPEN request.
String getOriginatorIP()
int getOriginatorPort()
void reject(OpenFailException.Reason reason, String message)
Indicate rejection to remote end.
[Expand]
Inherited Methods
From class net.schmizz.sshj.connection.channel.AbstractChannel
From class java.lang.Object
From interface java.io.Closeable
From interface net.schmizz.sshj.common.ErrorNotifiable
From interface net.schmizz.sshj.common.SSHPacketHandler
From interface net.schmizz.sshj.connection.channel.Channel
From interface net.schmizz.sshj.connection.channel.Channel.Forwarded

Fields

protected final String origIP

protected final int origPort

Protected Constructors

protected AbstractForwardedChannel (Connection conn, String type, int recipient, long remoteWinSize, long remoteMaxPacketSize, String origIP, int origPort)

Parameters
conn
type
recipient
remoteWinSize
remoteMaxPacketSize
origIP
origPort

Public Methods

public void confirm ()

Confirm CHANNEL_OPEN request.

public String getOriginatorIP ()

public int getOriginatorPort ()

public void reject (OpenFailException.Reason reason, String message)

Indicate rejection to remote end.

Parameters
reason Indicate OpenFailException.Reason reason for rejection of the request
message Indicate a message for why the request is rejected