com.sshtools.j2ssh.forwarding

Class ForwardingChannelImpl

Implemented Interfaces:
ForwardingChannel

public class ForwardingChannelImpl
extends java.lang.Object
implements ForwardingChannel

Version:
$Revision: 1.11 $
Author:
$author$

Fields inherited from interface com.sshtools.j2ssh.forwarding.ForwardingChannel

LOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL

Constructor Summary

ForwardingChannelImpl(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort)
Creates a new ForwardingChannelImpl object.

Method Summary

byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
String
getChannelType()
String
getHostToConnectOrBind()
String
getName()
String
getOriginatingHost()
int
getOriginatingPort()
int
getPortToConnectOrBind()

Constructor Details

ForwardingChannelImpl

public ForwardingChannelImpl(String forwardType,
                             String name,
                             String hostToConnectOrBind,
                             int portToConnectOrBind,
                             String originatingHost,
                             int originatingPort)
            throws ForwardingConfigurationException
Creates a new ForwardingChannelImpl object.
Parameters:
forwardType -
hostToConnectOrBind -
portToConnectOrBind -
originatingHost -
originatingPort -

Method Details

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Returns:

getChannelOpenData

public byte[] getChannelOpenData()
Returns:

getChannelType

public String getChannelType()
Specified by:
getChannelType in interface ForwardingChannel
Returns:

getHostToConnectOrBind

public String getHostToConnectOrBind()
Specified by:
getHostToConnectOrBind in interface ForwardingChannel
Returns:

getName

public String getName()
Specified by:
getName in interface ForwardingChannel

getOriginatingHost

public String getOriginatingHost()
Specified by:
getOriginatingHost in interface ForwardingChannel
Returns:

getOriginatingPort

public int getOriginatingPort()
Specified by:
getOriginatingPort in interface ForwardingChannel
Returns:

getPortToConnectOrBind

public int getPortToConnectOrBind()
Specified by:
getPortToConnectOrBind in interface ForwardingChannel
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.