org.lobobrowser.settings
Class ConnectionSettings

java.lang.Object
  extended by org.lobobrowser.settings.ConnectionSettings
All Implemented Interfaces:
java.io.Serializable

public class ConnectionSettings
extends java.lang.Object
implements java.io.Serializable

Connection settings. This is a singleton class with an instance obtained by calling getInstance().

See Also:
Serialized Form

Method Summary
 java.net.InetSocketAddress getInetSocketAddress()
           
static ConnectionSettings getInstance()
          Gets the class singleton.
 java.lang.String getPassword()
           
 java.net.PasswordAuthentication getPasswordAuthentication()
           
 java.net.Proxy getProxy(java.lang.String host)
          Gets a non-null Proxy insteance.
 java.net.Proxy.Type getProxyType()
           
 java.lang.String getUserName()
           
 boolean isAuthenticated()
           
 boolean isDisableProxyForLocalAddresses()
           
 void restoreDefaults()
           
 void save()
           
 void setAuthenticated(boolean authenticated)
           
 void setDisableProxyForLocalAddresses(boolean disableProxyForLocalAddresses)
           
 void setInetSocketAddress(java.net.InetSocketAddress socketAddress)
           
 void setPassword(java.lang.String password)
           
 void setProxyType(java.net.Proxy.Type proxyType)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

restoreDefaults

public void restoreDefaults()

getInstance

public static ConnectionSettings getInstance()
Gets the class singleton.


getProxy

public java.net.Proxy getProxy(java.lang.String host)
Gets a non-null Proxy insteance.


getPasswordAuthentication

public java.net.PasswordAuthentication getPasswordAuthentication()

isAuthenticated

public boolean isAuthenticated()
Returns:
Returns the authenticated.

setAuthenticated

public void setAuthenticated(boolean authenticated)
Parameters:
authenticated - The authenticated to set.

getPassword

public java.lang.String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - The password to set.

getUserName

public java.lang.String getUserName()
Returns:
Returns the userName.

setUserName

public void setUserName(java.lang.String userName)
Parameters:
userName - The userName to set.

getProxyType

public java.net.Proxy.Type getProxyType()
Returns:
Returns the proxyType.

setProxyType

public void setProxyType(java.net.Proxy.Type proxyType)
Parameters:
proxyType - The proxyType to set.

getInetSocketAddress

public java.net.InetSocketAddress getInetSocketAddress()
Returns:
Returns the socketAddress.

setInetSocketAddress

public void setInetSocketAddress(java.net.InetSocketAddress socketAddress)
Parameters:
socketAddress - The socketAddress to set.

isDisableProxyForLocalAddresses

public boolean isDisableProxyForLocalAddresses()

setDisableProxyForLocalAddresses

public void setDisableProxyForLocalAddresses(boolean disableProxyForLocalAddresses)

save

public void save()


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]