|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ChannelFactory
Simple interface for a factory to create Channels. You only need to use
this if you are creating custom channel types that need special features
like ChannelRequests -- in other words, implementing new protocols over
SSH. Use Transport.registerChannelKind(java.lang.String, net.lag.jaramiko.ChannelFactory) to register the factory
with your Transport.
| Method Summary | |
|---|---|
Channel |
createChannel(java.lang.String kind,
int chanid,
java.util.List params)
Create a channel from parameters that are in the form of a list. |
Channel |
createChannel(java.lang.String kind,
int chanid,
Message params)
Create a channel from parameters that are in the form of an SSH Message. |
| Method Detail |
|---|
Channel createChannel(java.lang.String kind,
int chanid,
java.util.List params)
ClientTransport when a client channel is opened.
kind - arbitrary string (defined by the argument to
ClientTransport.openChannel(java.lang.String, java.util.List, int)) indicating the kind of channel
to openchanid - the transport-defined ID for the channelparams - any parameters that were passed from openChannel.
Channel createChannel(java.lang.String kind,
int chanid,
Message params)
Message. This is called from ServerTransport when the
remote client has requested a special channel type. The parameters
(if any) can be retrieved from the Message object.
kind - arbitrary string (defined by the argument to
ClientTransport.openChannel(java.lang.String, java.util.List, int)) string indicating the kind of
channel to openchanid - the transport-defined ID for the channelparams - parameters that were originally passed by the remote
client as a List.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||