com.maverick.ssh2
Interface ChannelFactory


public interface ChannelFactory

The SSH2 protocol supports many different channel types including sesisons, port forwarding and x11 forwarding; most channels are requested by the client and created by the server however it is possible for the server to request any type of channel from the client, this interface defines the contract for supporting a standard and custom channel creation.

Author:
Lee David Painter

Method Summary
 Ssh2Channel createChannel(java.lang.String channeltype, byte[] requestdata)
          Create an instance of an SSH channel.
 java.lang.String[] supportedChannelTypes()
          Return the supported channel types.
 

Method Detail

supportedChannelTypes

public java.lang.String[] supportedChannelTypes()
Return the supported channel types.

Returns:
an array of Strings containing the channel types.

createChannel

public Ssh2Channel createChannel(java.lang.String channeltype,
                                 byte[] requestdata)
                          throws SshException,
                                 ChannelOpenException

Create an instance of an SSH channel. The new instance should be returned, if for any reason the channel cannot be created either because the channel is not supported or there are not enough resources an exception is thrown.

Parameters:
channeltype -
requestdata -
Returns:
an open channel
Throws:
ChannelOpenException
SshException


Copyright © 2003 3SP LTD. All Rights Reserved.