com.lokan.gmlib
Class Proxy

java.lang.Object
  extended by com.lokan.gmlib.Proxy

public class Proxy
extends java.lang.Object

Proxy information holder.


Constructor Summary
Proxy(java.lang.String proxy, int proxyPort)
          Creates a new instance of Proxy.
Proxy(java.lang.String proxy, int proxyPort, java.lang.String proxyUsername, java.lang.String proxyPassword)
          Creates a new instance of Proxy.
 
Method Summary
 java.lang.String getProxy()
          Returns proxy.
 java.lang.String getProxyPassword()
          Returns password.
 int getProxyPort()
          Returns port.
 java.lang.String getProxyUsername()
          Returns username.
 boolean isAuthenticationNeeded()
          Returns true if authentication is needed else false.
 java.lang.String toString()
          Returns a string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy(java.lang.String proxy,
             int proxyPort)
Creates a new instance of Proxy.

Parameters:
proxy - Proxy.
proxyPort - Port.

Proxy

public Proxy(java.lang.String proxy,
             int proxyPort,
             java.lang.String proxyUsername,
             java.lang.String proxyPassword)
Creates a new instance of Proxy.

Parameters:
proxy - Proxy.
proxyPort - Port.
proxyUsername - Username.
proxyPassword - Password.
Method Detail

getProxy

public java.lang.String getProxy()
Returns proxy.

Returns:
Returns proxy.

getProxyPort

public int getProxyPort()
Returns port.

Returns:
Returns port.

getProxyUsername

public java.lang.String getProxyUsername()
Returns username.

Returns:
Returns username.

getProxyPassword

public java.lang.String getProxyPassword()
Returns password.

Returns:
Returns password.

isAuthenticationNeeded

public boolean isAuthenticationNeeded()
Returns true if authentication is needed else false.

Returns:
Returns true if authentication is needed else false.

toString

public java.lang.String toString()
Returns a string representation of this instance.

Overrides:
toString in class java.lang.Object
Returns:
Returns a string representation of this instance.


Copyright © 2007. All Rights Reserved.