net.sf.hermesftp.cmd
Class DataChannelInfo

java.lang.Object
  extended by net.sf.hermesftp.cmd.DataChannelInfo

public class DataChannelInfo
extends java.lang.Object

Wraps the connection parameter of the data channel into a single object.

Author:
Behnke

Constructor Summary
DataChannelInfo(java.lang.String addr, int port)
          Constructor.
DataChannelInfo(java.lang.String addr, int port, int protocolIdx)
          Constructor.
 
Method Summary
 java.lang.String getAddress()
          Getter method for address.
 int getPort()
          Getter method for port.
 int getProtocolIdx()
          Getter method for protocolIdx.
 void setAddress(java.lang.String address)
          Setter method for address.
 void setPort(int port)
          Setter method for port.
 void setProtocolIdx(int protocolIdx)
          Setter method for protocolIdx.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataChannelInfo

public DataChannelInfo(java.lang.String addr,
                       int port)
Constructor.

Parameters:
addr - The IP address.
port - The port.

DataChannelInfo

public DataChannelInfo(java.lang.String addr,
                       int port,
                       int protocolIdx)
Constructor.

Parameters:
addr - The IP address.
port - The port.
protocolIdx - The protocol index (IPv4, IPv6)
Method Detail

getProtocolIdx

public int getProtocolIdx()
Getter method for protocolIdx.

Returns:
The property protocolIdx.

setProtocolIdx

public void setProtocolIdx(int protocolIdx)
Setter method for protocolIdx.

Parameters:
protocolIdx - the protocolIdx to set

getAddress

public java.lang.String getAddress()
Getter method for address.

Returns:
The property address.

setAddress

public void setAddress(java.lang.String address)
Setter method for address.

Parameters:
address - the address to set

getPort

public int getPort()
Getter method for port.

Returns:
The property port.

setPort

public void setPort(int port)
Setter method for port.

Parameters:
port - the port to set


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.