net.sourceforge.java.feednread.backend.configuration
Class ProxyServerSettings

java.lang.Object
  extended bynet.sourceforge.java.feednread.backend.configuration.ProxyServerSettings

public class ProxyServerSettings
extends Object

Holds the settings of a proxy server for all online connections established by the ConnectionManager.

Author:
Sebastian Machhausen

Field Summary
private  String address
           The url of the proxy server
private  boolean enabled
           The enabled status of the proxy server.
private  String login
           The login for authentication
private  String password
           The password for authentication
private  int port
           The port of the proxy server (0 - 65536)
 
Constructor Summary
ProxyServerSettings()
           Creates a new ProxyServerSettings instance.
ProxyServerSettings(String address, int port)
           Creates a new ProxyServerSettings instance.
ProxyServerSettings(String address, int port, String login, String password)
           Creates a new ProxyServerSettings instance.
 
Method Summary
 String getAddress()
           Gets the address of the proxy server.
 String getLogin()
           Gets the login used for authentication at the proxy server.
 String getPassword()
           Gets the password used for authentication at the proxy server.
 int getPort()
           Gets the port of the proxy server.
 boolean isEnabled()
           Gets the enabled status of the configured proxy server.
 void setAddress(String address)
           Sets the address of the proxy server.
 void setEnabled(boolean enabled)
           Sets the enabled status of the configured proxy server.
 void setLogin(String login)
           Sets the login used for authentication at the proxy server.
 void setPassword(String password)
           Sets the password used for authentication at the proxy server.
 void setPort(int port)
           Sets the port of the proxy server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

private String address

The url of the proxy server


port

private int port

The port of the proxy server (0 - 65536)


login

private String login

The login for authentication


password

private String password

The password for authentication


enabled

private boolean enabled

The enabled status of the proxy server. true if enabled; false if disabled

Constructor Detail

ProxyServerSettings

public ProxyServerSettings(String address,
                           int port,
                           String login,
                           String password)

Creates a new ProxyServerSettings instance.

Parameters:
address - the address of the proxy server
port - the port of the proxy server
login - the login for authentication at the proxy server
password - the password for authentication at the proxy server

ProxyServerSettings

public ProxyServerSettings(String address,
                           int port)

Creates a new ProxyServerSettings instance.

Parameters:
address - the address of the proxy server
port - the port of the proxy server

ProxyServerSettings

public ProxyServerSettings()

Creates a new ProxyServerSettings instance. This is the default constructor which uses empty settings.

Method Detail

getAddress

public String getAddress()

Gets the address of the proxy server.

Returns:
the address of the proxy server
See Also:
setAddress(String)

setAddress

public void setAddress(String address)

Sets the address of the proxy server.

Parameters:
address - the address of the proxy server
See Also:
getAddress()

getPort

public int getPort()

Gets the port of the proxy server.

Returns:
the port of the proxy server
See Also:
setPort(int)

setPort

public void setPort(int port)

Sets the port of the proxy server.

Parameters:
port - the port of the proxy server
See Also:
getPort()

getLogin

public String getLogin()

Gets the login used for authentication at the proxy server.

Returns:
the login used for authentication at the proxy server
See Also:
setLogin(String)

setLogin

public void setLogin(String login)

Sets the login used for authentication at the proxy server.

Parameters:
login - the login used for authentication at the proxy server
See Also:
getLogin()

getPassword

public String getPassword()

Gets the password used for authentication at the proxy server.

Returns:
the password used for authentication at the proxy server
See Also:
setPassword(String)

setPassword

public void setPassword(String password)

Sets the password used for authentication at the proxy server.

Parameters:
password - the password used for authentication at the proxy server
See Also:
getPassword()

isEnabled

public boolean isEnabled()

Gets the enabled status of the configured proxy server.

Returns:
true if proxy server usage is enabled; false

setEnabled

public void setEnabled(boolean enabled)

Sets the enabled status of the configured proxy server.

Parameters:
enabled - true to enable, false