cz.vity.freerapid.plugins.webclient
Class ConnectionSettings

java.lang.Object
  extended by cz.vity.freerapid.plugins.webclient.ConnectionSettings

public class ConnectionSettings
extends Object

Author:
Vity

Constructor Summary
ConnectionSettings()
          Constructor - creates a new ConnectionSettings instance.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Method delegations
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Method delegation
 boolean equals(Object o)
           
 String getPassword()
          Method getPassword returns the password of this ConnectionSettings object.
 PropertyChangeListener[] getPropertyChangeListeners()
          Method delegation.
 int getProxyPort()
          Method getProxyPort returns the proxyPort of this ConnectionSettings object.
 String getProxyURL()
          Method getProxyURL returns the proxyURL of this ConnectionSettings object.
 String getUserName()
          Method getUserName returns the userName of this ConnectionSettings object.
 int hashCode()
           
 boolean hasUserName()
          Method checks whether user name for proxy server was set.
 boolean isDefault()
          Method isDefault checks whether this connection is marked as default.
 boolean isEnabled()
          Method isEnabled returns the enabled state of this ConnectionSettings object - if it should be used together
 boolean isProxySet()
          Method isProxySet returns the proxySet of this ConnectionSettings object.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Method delegations
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Method delegation
 void setDefault(boolean aDefault)
          Method setDefault sets a flag whether this connection is marked as default.
 void setEnabled(boolean enabled)
          Method setEnabled sets its enabled state for this ConnectionSettings object.
 void setProxy(String proxyURL, int proxyPort)
           
 void setProxy(String proxyURL, int proxyPort, String userName, String password)
          Method setProxy sets proxy settings
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionSettings

public ConnectionSettings()
Constructor - creates a new ConnectionSettings instance.

Method Detail

setProxy

public void setProxy(String proxyURL,
                     int proxyPort,
                     String userName,
                     String password)
Method setProxy sets proxy settings

Parameters:
proxyURL - url of proxy server
proxyPort - proxy server port
userName - access user name
password - access user password

setProxy

public void setProxy(String proxyURL,
                     int proxyPort)
Parameters:
proxyURL -
proxyPort -

isProxySet

public boolean isProxySet()
Method isProxySet returns the proxySet of this ConnectionSettings object.

Returns:
the proxySet (type boolean) of this ConnectionSettings object.

getProxyPort

public int getProxyPort()
Method getProxyPort returns the proxyPort of this ConnectionSettings object.

Returns:
the proxyPort (type int) of this ConnectionSettings object.

getProxyURL

public String getProxyURL()
Method getProxyURL returns the proxyURL of this ConnectionSettings object.

Returns:
the proxyURL (type String) of this ConnectionSettings object.

getPassword

public String getPassword()
Method getPassword returns the password of this ConnectionSettings object.

Returns:
the password (type String) of this ConnectionSettings object.

getUserName

public String getUserName()
Method getUserName returns the userName of this ConnectionSettings object.

Returns:
the userName (type String) of this ConnectionSettings object.

hasUserName

public boolean hasUserName()
Method checks whether user name for proxy server was set.

Returns:
boolean true if user name was set (not null), false otherwise

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isEnabled

public boolean isEnabled()
Method isEnabled returns the enabled state of this ConnectionSettings object - if it should be used together

Returns:
the enabled (type boolean) of this ConnectionSettings object.

setEnabled

public void setEnabled(boolean enabled)
Method setEnabled sets its enabled state for this ConnectionSettings object.

Parameters:
enabled - the enabled state of this ConnectionSettings object.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Method delegations

Parameters:
listener -
See Also:
PropertyChangeSupport.addPropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Method delegations

Parameters:
listener -
See Also:
PropertyChangeSupport.removePropertyChangeListener(java.beans.PropertyChangeListener)

getPropertyChangeListeners

public PropertyChangeListener[] getPropertyChangeListeners()
Method delegation.

Returns:
See Also:
PropertyChangeSupport.getPropertyChangeListeners()

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Method delegation

Parameters:
propertyName - name of bean property
listener - listener to add
See Also:
PropertyChangeSupport.addPropertyChangeListener(String, java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Method delegation

Parameters:
propertyName - bean property name
listener - listener to remove from property
See Also:
PropertyChangeSupport.removePropertyChangeListener(String, java.beans.PropertyChangeListener)

isDefault

public boolean isDefault()
Method isDefault checks whether this connection is marked as default.

Returns:
the default (type boolean) of this ConnectionSettings object.

setDefault

public void setDefault(boolean aDefault)
Method setDefault sets a flag whether this connection is marked as default.

Parameters:
aDefault - boolean value