com.mindtree.techworks.insight.download
Class ProxyInfo

java.lang.Object
  extended by com.mindtree.techworks.insight.download.ProxyInfo

public class ProxyInfo
extends java.lang.Object

ProxyInfo is a data object that holds information about proxy related parameters.


Nested Class Summary
 class ProxyInfo.ProtocolProxyInfo
          Contains information about a particular proxy host for a protocol.
 
Constructor Summary
ProxyInfo()
           
 
Method Summary
 ProxyInfo.ProtocolProxyInfo getFtpProxyInfo()
          Gets the FTP Proxy information
 ProxyInfo.ProtocolProxyInfo getHttpProxyInfo()
          Gets the HTTP Proxy information
 java.net.PasswordAuthentication getPasswordInformation()
           
 ProxyInfo.ProtocolProxyInfo getSocksProxyInfo()
          Gets the SOCKS Proxy information
 boolean isAuthenticationRequired()
           
 void setAuthenticationRequired(boolean isAuthenticationRequired)
           
 void setFtpProxyInfo(java.lang.String host, int port)
          Sets the FTP Proxy information.
 void setHttpProxyInfo(java.lang.String host, int port)
          Sets the HTTP Proxy information.
 void setPasswordInformation(java.lang.String userName, java.lang.String password)
           
 void setSocksProxyInfo(java.lang.String host, int port)
          Sets the SOCKS Proxy information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyInfo

public ProxyInfo()
Method Detail

setHttpProxyInfo

public void setHttpProxyInfo(java.lang.String host,
                             int port)
Sets the HTTP Proxy information.

Parameters:
host - HTTP Proxy host
port - HTTP Proxy port

getHttpProxyInfo

public ProxyInfo.ProtocolProxyInfo getHttpProxyInfo()
Gets the HTTP Proxy information

Returns:
ProtocolProxyInfo object containing the HTTP Proxy information.

setFtpProxyInfo

public void setFtpProxyInfo(java.lang.String host,
                            int port)
Sets the FTP Proxy information.

Parameters:
host - FTP Proxy host
port - FTP Proxy port

getFtpProxyInfo

public ProxyInfo.ProtocolProxyInfo getFtpProxyInfo()
Gets the FTP Proxy information

Returns:
ProtocolProxyInfo object containing the FTP Proxy information.

setSocksProxyInfo

public void setSocksProxyInfo(java.lang.String host,
                              int port)
Sets the SOCKS Proxy information.

Parameters:
host - SOCKS Proxy host
port - SOCKS Proxy port

getSocksProxyInfo

public ProxyInfo.ProtocolProxyInfo getSocksProxyInfo()
Gets the SOCKS Proxy information

Returns:
ProtocolProxyInfo object containing the SOCKS Proxy information.

isAuthenticationRequired

public boolean isAuthenticationRequired()
Returns:
Returns the isAuthenticationRequired.

setAuthenticationRequired

public void setAuthenticationRequired(boolean isAuthenticationRequired)
Parameters:
isAuthenticationRequired - The isAuthenticationRequired to set.

getPasswordInformation

public java.net.PasswordAuthentication getPasswordInformation()
Returns:
Returns the passwordInformation.

setPasswordInformation

public void setPasswordInformation(java.lang.String userName,
                                   java.lang.String password)
Parameters:
userName - The username to set.
password - The password to set.


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.