org.indy.socks
Class SocksInfo

java.lang.Object
  |
  +--org.indy.BaseComponent
        |
        +--org.indy.IndyComponent
              |
              +--org.indy.socks.SocksInfo

public class SocksInfo
extends IndyComponent

Description of the Class

Author:
owen

Inner Class Summary
static class SocksInfo.Authentication
          Description of the Class
static class SocksInfo.Version
          Description of the Class
 
Inner classes inherited from class org.indy.IndyComponent
IndyComponent.WorkMode
 
Field Summary
protected  SocksInfo.Authentication authentication
          Description of the Field
protected  java.lang.String host
          Description of the Field
protected  IOHandler ioHandler
          Description of the Field
protected  java.lang.String password
          Description of the Field
protected  int port
          Description of the Field
protected  java.lang.String username
          Description of the Field
protected  SocksInfo.Version version
          Description of the Field
 
Constructor Summary
SocksInfo()
          Constructor for the IdSocksInfo object
SocksInfo(SocksInfo soInfo)
          Constructor for the IdSocksInfo object
 
Method Summary
 SocksInfo.Authentication getAuthentication()
          Gets the authentication attribute of the IdSocksInfo object
 java.lang.String getHost()
          Gets the host attribute of the IdSocksInfo object
 java.lang.String getPassword()
          Gets the password attribute of the IdSocksInfo object
 int getPort()
          Gets the port attribute of the IdSocksInfo object
 SocksInfo.Version getSocksVersion()
          Gets the socksVersion attribute of the IdSocksInfo object
 java.lang.String getUsername()
          Gets the username attribute of the IdSocksInfo object
 void makeSocks4Connection(java.lang.String host, int port)
          Description of the Method
 void makeSocks5Connection(java.lang.String host, int port)
          Description of the Method
 void makeSocksConnection(java.lang.String host, int port)
          Description of the Method
 void setAuthentication(SocksInfo.Authentication newAuthentication)
          Sets the authentication attribute of the IdSocksInfo object
 void setHost(java.lang.String _host)
          Sets the host attribute of the IdSocksInfo object
 void setIoHandler(IOHandler _ioHandler)
          Sets the ioHandler attribute of the IdSocksInfo object
 void setPassword(java.lang.String _password)
          Sets the password attribute of the IdSocksInfo object
 void setPort(int _port)
          Sets the port attribute of the IdSocksInfo object
 void setSocksVersion(SocksInfo.Version _version)
          Sets the socksVersion attribute of the IdSocksInfo object
 void setUsername(java.lang.String _username)
          Sets the username attribute of the IdSocksInfo object
 
Methods inherited from class org.indy.IndyComponent
addComponentListener, doBeginWork, doBeginWork, doEndWork, doStatus, doStatus, doWork, getLocalName, removeComponentListener
 
Methods inherited from class org.indy.BaseComponent
getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authentication

protected SocksInfo.Authentication authentication
Description of the Field

host

protected java.lang.String host
Description of the Field

port

protected int port
Description of the Field

username

protected java.lang.String username
Description of the Field

password

protected java.lang.String password
Description of the Field

version

protected SocksInfo.Version version
Description of the Field

ioHandler

protected IOHandler ioHandler
Description of the Field
Constructor Detail

SocksInfo

public SocksInfo(SocksInfo soInfo)
Constructor for the IdSocksInfo object
Parameters:
soInfo - Description of the Parameter

SocksInfo

public SocksInfo()
Constructor for the IdSocksInfo object
Method Detail

setAuthentication

public void setAuthentication(SocksInfo.Authentication newAuthentication)
Sets the authentication attribute of the IdSocksInfo object
Parameters:
newAuthentication - The new authentication value

setHost

public void setHost(java.lang.String _host)
Sets the host attribute of the IdSocksInfo object
Parameters:
_host - The new host value

setPort

public void setPort(int _port)
Sets the port attribute of the IdSocksInfo object
Parameters:
_port - The new port value

setUsername

public void setUsername(java.lang.String _username)
Sets the username attribute of the IdSocksInfo object
Parameters:
_username - The new username value

setPassword

public void setPassword(java.lang.String _password)
Sets the password attribute of the IdSocksInfo object
Parameters:
_password - The new password value

setSocksVersion

public void setSocksVersion(SocksInfo.Version _version)
Sets the socksVersion attribute of the IdSocksInfo object
Parameters:
_version - The new socksVersion value

setIoHandler

public void setIoHandler(IOHandler _ioHandler)
Sets the ioHandler attribute of the IdSocksInfo object
Parameters:
_ioHandler - The new ioHandler value

getAuthentication

public SocksInfo.Authentication getAuthentication()
Gets the authentication attribute of the IdSocksInfo object
Returns:
The authentication value

getHost

public java.lang.String getHost()
Gets the host attribute of the IdSocksInfo object
Returns:
The host value

getPort

public int getPort()
Gets the port attribute of the IdSocksInfo object
Returns:
The port value

getUsername

public java.lang.String getUsername()
Gets the username attribute of the IdSocksInfo object
Returns:
The username value

getPassword

public java.lang.String getPassword()
Gets the password attribute of the IdSocksInfo object
Returns:
The password value

getSocksVersion

public SocksInfo.Version getSocksVersion()
Gets the socksVersion attribute of the IdSocksInfo object
Returns:
The socksVersion value

makeSocksConnection

public void makeSocksConnection(java.lang.String host,
                                int port)
                         throws SocksException,
                                ReadTimedOutException
Description of the Method
Parameters:
host - Description of the Parameter
port - Description of the Parameter
Throws:
IdSocksError - Description of the Exception

makeSocks4Connection

public void makeSocks4Connection(java.lang.String host,
                                 int port)
                          throws SocksException,
                                 ReadTimedOutException
Description of the Method
Parameters:
host - Description of the Parameter
port - Description of the Parameter
Throws:
IdSocksError - Description of the Exception

makeSocks5Connection

public void makeSocks5Connection(java.lang.String host,
                                 int port)
                          throws SocksException,
                                 ReadTimedOutException
Description of the Method
Parameters:
host - Description of the Parameter
port - Description of the Parameter
Throws:
IdSocksError - Description of the Exception


Copyright © 2002-2002 IndyJ. All Rights Reserved.