com.sshtools.j2ssh.forwarding

Class ForwardingConfiguration

Known Direct Subclasses:
ForwardingListener

public class ForwardingConfiguration
extends java.lang.Object

Version:
$Revision: 1.41 $
Author:
$author$

Nested Class Summary

class
ForwardingConfiguration.ForwardingConfigurationMonitor

Field Summary

protected String
addressToBind
protected String
hostToConnect
protected EventListenerList
listenerList
protected ForwardingConfiguration.ForwardingConfigurationMonitor
monitor
protected String
name
protected int
portToBind
protected int
portToConnect
protected StartStopState
state

Constructor Summary

ForwardingConfiguration(String name, String addressToBind, int portToBind, String hostToConnect, int portToConnect)
Creates a new ForwardingConfiguration object.
ForwardingConfiguration(String addressToBind, int portToBind)
Creates a new ForwardingConfiguration object.

Method Summary

void
addForwardingConfigurationListener(ForwardingConfigurationListener l)
ForwardingBindingChannel
createForwardingBindingChannel(String type, String hostToConnect, int portToConnect, String originatingHost, int originatingPort)
ForwardingIOChannel
createForwardingIOChannel(String type, String hostToConnect, int portToConnect, String originatingHost, int originatingPort)
ForwardingSocketChannel
createForwardingSocketChannel(String type, String hostToConnect, int portToConnect, String originatingHost, int originatingPort)
List
getActiveForwardingSocketChannels()
String
getAddressToBind()
String
getHostToConnect()
String
getName()
int
getPortToBind()
int
getPortToConnect()
StartStopState
getState()
boolean
isForwarding()
void
removeForwardingConfigurationListener(ForwardingConfigurationListener l)
void
start()
void
stop()

Field Details

addressToBind

protected String addressToBind

hostToConnect

protected String hostToConnect

listenerList

protected EventListenerList listenerList

monitor

protected ForwardingConfiguration.ForwardingConfigurationMonitor monitor

name

protected String name

portToBind

protected int portToBind

portToConnect

protected int portToConnect

state

protected StartStopState state

Constructor Details

ForwardingConfiguration

public ForwardingConfiguration(String name,
                               String addressToBind,
                               int portToBind,
                               String hostToConnect,
                               int portToConnect)
Creates a new ForwardingConfiguration object.
Parameters:
name -
addressToBind -
portToBind -
hostToConnect -
portToConnect -

ForwardingConfiguration

public ForwardingConfiguration(String addressToBind,
                               int portToBind)
Creates a new ForwardingConfiguration object.
Parameters:
addressToBind -
portToBind -

Method Details

addForwardingConfigurationListener

public void addForwardingConfigurationListener(ForwardingConfigurationListener l)
Parameters:
l -

createForwardingBindingChannel

public ForwardingBindingChannel createForwardingBindingChannel(String type,
                                                               String hostToConnect,
                                                               int portToConnect,
                                                               String originatingHost,
                                                               int originatingPort)
            throws ForwardingConfigurationException
Parameters:
type -
hostToConnect -
portToConnect -
originatingHost -
originatingPort -
Returns:

createForwardingIOChannel

public ForwardingIOChannel createForwardingIOChannel(String type,
                                                     String hostToConnect,
                                                     int portToConnect,
                                                     String originatingHost,
                                                     int originatingPort)
            throws ForwardingConfigurationException
Parameters:
type -
hostToConnect -
portToConnect -
originatingHost -
originatingPort -
Returns:

createForwardingSocketChannel

public ForwardingSocketChannel createForwardingSocketChannel(String type,
                                                             String hostToConnect,
                                                             int portToConnect,
                                                             String originatingHost,
                                                             int originatingPort)
            throws ForwardingConfigurationException
Parameters:
type -
hostToConnect -
portToConnect -
originatingHost -
originatingPort -
Returns:

getActiveForwardingSocketChannels

public List getActiveForwardingSocketChannels()
Returns:

getAddressToBind

public String getAddressToBind()
Returns:

getHostToConnect

public String getHostToConnect()
Returns:

getName

public String getName()
Returns:

getPortToBind

public int getPortToBind()
Returns:

getPortToConnect

public int getPortToConnect()
Returns:

getState

public StartStopState getState()
Returns:

isForwarding

public boolean isForwarding()

removeForwardingConfigurationListener

public void removeForwardingConfigurationListener(ForwardingConfigurationListener l)
Parameters:
l -

start

public void start()
            throws IOException

stop

public void stop()

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